Skip to content

Commit f0cb7e2

Browse files
authored
fix: do not retry on status code 504 (proxy timeout). (#226)
1 parent 158a18b commit f0cb7e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sumo/wrapper/_retry_strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _is_retryable_exception(exception):
3030

3131
# Define the conditions for retrying based on HTTP status codes
3232
def _is_retryable_status_code(response):
33-
return response.status_code in [502, 503, 504]
33+
return response.status_code in [502, 503]
3434

3535

3636
def _return_last_value(retry_state):

0 commit comments

Comments
 (0)