Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.28k stars 108 forks source link

BUG - Retry within one hour if task is missed but the task is new #183

Open benito2313 opened 1 year ago

benito2313 commented 1 year ago

Describe the bug When a task is removed and then added again but the start time has passed, it still runs the task if the start time of the task is within one hour after the start time. I dont think i set anything for a retry, so i think its a default setting somewhere when the window is missed and the time is within one hour it still runs the task. But the weird thing is that the task is deleted and added again so there isnt anything to be missed.

To Reproduce app.task(daily.at('14:30'), func_name='run', name='task1', path=script, execution='thread') app.session['task1'].delete()

add_task = FuncTask(func_name='run', name='task', path=script, execution='thread', start_cond=daily.at('14:30') ) app.session.add_task(add_task)

Expected behavior I would expect that the task is removed and added and waits for the next run.

Desktop (please complete the following information):