dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.73k stars 959 forks source link

what is the function of time.slppe(1) #503

Closed lookforwardto closed 2 years ago

lookforwardto commented 2 years ago

if don't add sleep after schedule, what will happen?

SijmenHuizenga commented 2 years ago

Without sleep, the program would continuously check for new jobs to run, taking up as much cpu-power as a it can. This would be a waste of cpu cycles.