Skip to content

Commit

Permalink
Merge pull request #208 from inverted-ai/403-status-force-list
Browse files Browse the repository at this point in the history
Add 403 to default retry status
  • Loading branch information
Ruishenl authored May 2, 2024
2 parents 5c8f05d + 11d0133 commit 163e837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invertedai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __init__(self):
)
self._base_url = self._get_base_url()
self._max_retries = float("inf")
self._status_force_list = [408, 429, 500, 502, 503, 504]
self._status_force_list = [403, 408, 429, 500, 502, 503, 504]
self._base_backoff = 1 # Base backoff time in seconds
self._backoff_factor = 2
self._jitter_factor = 0.5
Expand Down

0 comments on commit 163e837

Please sign in to comment.