Skip to content

Commit

Permalink
Merge pull request #30 from rohanpm/retry-POST
Browse files Browse the repository at this point in the history
Fix certain requests not retrying
  • Loading branch information
rohanpm authored Dec 4, 2023
2 parents 302e795 + 580cfc9 commit 1336a3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pubtools/exodus/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def new_session(self):
total=int(self.retries),
backoff_factor=1,
status_forcelist=[429, 500, 502, 503, 504],
allowed_methods=Retry.DEFAULT_ALLOWED_METHODS.union(["POST"]),
)
adapter = requests.adapters.HTTPAdapter(max_retries=retry_strategy)

Expand Down

0 comments on commit 1336a3b

Please sign in to comment.