Skip to content

Commit

Permalink
Merge pull request conda#9919 from bnemanich/add_500_retry
Browse files Browse the repository at this point in the history
Allow retries for 500 error code.
  • Loading branch information
mcg1969 authored Jul 15, 2020
2 parents d5a617f + beb9d06 commit 3527c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cla-signers
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bilderbuchi | Christoph Buchner <[email protected]> | 2018-07
bkreider | Bradley Kreider <[email protected]> | Anaconda, Inc.
blackgear | Daniel Zeng <[email protected]> | 2019-02-27
bluekeyes | Billy Keyes <[email protected]> | 2018-05-23
bnemanich | Bradley Nemanich <[email protected]> | 2020-05-05
bradsaracik | Brad S <[email protected]> | 2018-07-28
brentp | Brent Pedersen <[email protected]> | 2018-07-23
bryevdv | Bryan Van de Ven <[email protected]> | Anaconda, Inc.
Expand Down
4 changes: 3 additions & 1 deletion conda/gateways/connection/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def __init__(self):
else:
# Configure retries
retry = Retry(total=context.remote_max_retries,
backoff_factor=context.remote_backoff_factor)
backoff_factor=context.remote_backoff_factor,
status_forcelist=[413, 429, 500, 503],
raise_on_status=False)
http_adapter = HTTPAdapter(max_retries=retry)
self.mount("http://", http_adapter)
self.mount("https://", http_adapter)
Expand Down

0 comments on commit 3527c89

Please sign in to comment.