Skip to content

Commit

Permalink
fix: do not retry on bad requests (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbieri authored Sep 26, 2023
1 parent 7ceec62 commit 69e0e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcclient/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SysdigHTTPAdapter(HTTPAdapter):
def __init__(self, *args, **kwargs):
retry_strategy = Retry(
total=3,
status_forcelist=[403, 404, 429, 500, 502, 503, 504],
status_forcelist=[500, 502, 503, 504],
allowed_methods=["HEAD", "GET", "OPTIONS", "PUSH", "PUT"],
backoff_factor=2,
)
Expand Down

0 comments on commit 69e0e52

Please sign in to comment.