Skip to content

Commit c7eccd9

Browse files
committed
Merge branch 'hotfix/2.6.5'
2 parents 134f4bd + ba03414 commit c7eccd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

share/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def do_run(self, start=None, end=None, limit=None, force=False, superfluous=Fals
314314
raise self.retry(
315315
exc=e,
316316
max_retries=99999,
317-
countdown=min((random.random() + 1) * (settings.CELERY_RETRY_BACKOFF_BASE ** self.request.retries), (random.random() + 1) * 60 * 15)
317+
countdown=(random.random() + 1) * min(settings.CELERY_RETRY_BACKOFF_BASE ** self.request.retries, 60 * 15)
318318
)
319319
except Exception as e:
320320
log.fail(e)

0 commit comments

Comments
 (0)