Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
benito2313 opened this issue Jan 16, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@benito2313
Copy link

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):

  • OS: Windows11
  • Python version 3.11
@benito2313 benito2313 added the bug Something isn't working label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant