django-background-tasks icon indicating copy to clipboard operation
django-background-tasks copied to clipboard

Repetitive task will stop working after max_attempts reached

Open jv3ga opened this issue 1 year ago • 0 comments

Hello, I found a case when a repetitive task should not be marked as failed after it reached the max_attempts params. Imagine, for this example, thath the MAX_ATTEMPTS param is setted to 3. And that you have two differents tasks:

  1. Run once task
  2. Run every-10-min task

After the 3 attemps the task 1 will be mark as failed, that's correct. After the 3 attemps the task 2 will be mark as failed, and it will never run again, that's not correct, otherwise I've to check manually if the task is marked as failed, and manually add the task again to re-schedule it.

jv3ga avatar Apr 08 '24 05:04 jv3ga