agronholm / apscheduler

Task scheduling library for Python
MIT License
5.94k stars 690 forks source link

background cron job getting stopped after time run #904

Closed Dhiru closed 1 month ago

Dhiru commented 2 months ago

Things to check first

Version

apscheduler-3.10.4

What happened?

scheduler.add_job(func=abfunc, trigger='cron', year='*', month='*', day=\'', week='\', hour='5,10,15,20',minute='20,30') Job getting stop after two runs (ie. 5.20, 5.30) i have add background job, it is running on 5hours and 20mins and but for next other hours (ie. 10hours 20mins, 15hours 20) is not running and even on next day also it is not running .

How can we reproduce the bug?

for reproduce set this times scheduler.add_job(func=abfunc, trigger='cron', year='*', month='*', day='', week='\', hour='5,10,15,20',minute='20,30')

agronholm commented 1 month ago

Have you followed the troubleshooting instructions to figure out what could be wrong? Can you reproduce this problem with a more frequently occurring schedule (like changing hours into minutes and minutes into seconds)?