last night I was doing my first simulation that was supposed to take more time than usual programs. It was 1 000 000 steps of Monte Carlo in Ising model for several temperature configurations with generating animations all made in Julia language. I am using Windows 10 and I set my computer not to hibernate at all to avoid interruption. Despite, in the morning I faced that my computer was in hibernation mode and none of my simulations were made. I think the reason for this is that Windows made an automatic update that very night.
So that starts my question. Do you know some tricks to avoid situations like this, that an overnight simulation may be interrupted? I don't mean just the update thing - it is easy to manage but in this case I just forgot about it. Did you face some other problems in such long simulation in your programming expirience and have tricks how to avoid them? Or maybe do you have some ways to do such simulation in clouds (I have never tried this so it might be helpful too).
If answears depends on the languages that the code is written in, I could say that the most helpful for me would be tricks in python or julia, but all languages are welcome - maybe someone else will be interested.