Does Python code run when computer is sleeping?

Question:

I have an unusual question.. Does Python code run when computer is sleeping?

Thank you for help!

Asked By: traiz

||

Answers:

Check your computer’s "Power Options" in the Control panel. You don’t need to worry about the screen locking because as long as the computer doesn’t get put to sleep, your process should continue to run. However, if your system is set to sleep after a set amount of time you may need to change this to Never. Keep in mind there are separate settings depending on whether or not the system is plugged in.

Answered By: Prafull Singh

Yes, terminal processes like a python script will stop execution when the machine goes into idle sleep

Answered By: Bhar Jay
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.