Skip to content

Commit

Permalink
chore: set max back of time to 16 * 60
Browse files Browse the repository at this point in the history
  • Loading branch information
am6010 committed Jun 13, 2024
1 parent 3328028 commit 8c41773
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def backoff_time(self, response: requests.Response) -> float:
return float(retry_after)

self.retries += 1
return 2**self.retries * 60
return min(2**self.retries * 60, 16 * 60)

def should_retry(self, response: requests.Response) -> bool:
if response.status_code == 402:
Expand Down

0 comments on commit 8c41773

Please sign in to comment.