parent
3e4755f7e4
commit
948682dbe2
1 changed files with 3 additions and 1 deletions
|
@ -423,9 +423,11 @@ class TaskExecutor:
|
|||
|
||||
# Read some values from the task, so that we can modify them if need be
|
||||
if self._task.until:
|
||||
retries = self._task.retries
|
||||
retries = self._task.retries + 1
|
||||
if retries is None:
|
||||
retries = 3
|
||||
elif retries <= 0:
|
||||
retries = 1
|
||||
else:
|
||||
retries = 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue