django-background-tasks
django-background-tasks copied to clipboard
Repetitive task will stop working after max_attempts reached
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:
- Run once task
- 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.