Fix off-by-one error with retries

Fixes #16408

(cherry picked from commit 948682dbe2)
pull/16447/head
James Cammarata 9 years ago
parent eeba5e2c3e
commit 084a3e13b0

@ -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…
Cancel
Save