Skip to content

Commit 859fd8a

Browse files
committed
add a status forcelist
1 parent d9a9107 commit 859fd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
RETRY_STRATEGY = Retry(
2323
total=TASKGET_TRIES, # Maximum number of retries
24-
status=0,
24+
status_forcelist=[429, 500, 502, 503, 504],
2525
redirect=False,
2626
backoff_factor=0.2, # Factor for exponential backoff between retries
2727
allowed_methods=["GET"] # Methods for which to retry

0 commit comments

Comments
 (0)