Fix off-by-one error with retries
Fixes #16408
(cherry picked from commit 948682dbe2
)
This commit is contained in:
parent
eeba5e2c3e
commit
084a3e13b0
1 changed files with 3 additions and 1 deletions
|
@ -424,9 +424,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