From be8a2035ba87fb3bbbe15e2bc772b6abff1e7bf2 Mon Sep 17 00:00:00 2001 From: tcely Date: Sat, 14 Jun 2025 16:15:19 -0400 Subject: [PATCH] Best wishes to the next century --- tubesync/common/huey.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tubesync/common/huey.py b/tubesync/common/huey.py index a4c7866a..73062fd3 100644 --- a/tubesync/common/huey.py +++ b/tubesync/common/huey.py @@ -74,12 +74,12 @@ def exponential_backoff(task_func=None, /, *args, **kwargs): try: return fn(*a, **kwa) except Exception as exc: - for attempt in range(1, 1_001): + for attempt in range(1, 240): if backoff(attempt) > task.retry_delay: task.retry_delay = backoff(attempt) break # insanity, but handle it anyway - if 1_000 == attempt: + if 239 == attempt: task.retry_delay = backoff(attempt) raise exc kwargs.update(dict(