dbader / schedule

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

Job running every minute is executed 3 times in on minute #495

Closed Wissperwind closed 2 years ago

Wissperwind commented 2 years ago

Hi,

In my production system with many job executions it happened that a job that should run every minute has run three times in one minute. It was started and after one minute it runs three times with the call of schedule.run_pending() which happens every 10 seconds in my system. So there is a loop that runs sleep 10 and than schedule.run_pending() and again. I can't figure out why this happened. Is there anything imaginable that in a long running windows service with many executed jobs souch a thing can happen?

Wissperwind commented 2 years ago

If there was a previous job running 3 min. Does schedule repeat a job 3 times if there was missing executions in the past due to a long running job?

Wissperwind commented 2 years ago

No, jobs were not repeated if they are late.. Found my error, sorry.