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

Different setting of MAX_ATTEMPT attribute in different background task

Open knm1993 opened this issue 5 years ago • 3 comments

I notice that we can have a global setting of max_attempt in the settings.py.
However, can the background task has its own max attempt number? Since some of the background task are supposed to abort on fail.

Would there be any setting in decorator like this?

@background(schedule=10, max_attempt=1)
def foo(bar):
     #blah blah blah

knm1993 avatar Nov 18 '20 02:11 knm1993

I also have the same question. Would there be a way to repeat some tasks, but abort others when they fail?

LefterisJP avatar Dec 09 '20 09:12 LefterisJP

I am also looking for solution for this?? Have u found and solution to this??

pwnchaurasia avatar May 16 '21 07:05 pwnchaurasia

Yes, that is a feature that would also help me. Are there any plans if it can be implemented?

fuzzylogic2000 avatar Oct 07 '22 06:10 fuzzylogic2000