Skip to content

Commit

Permalink
revert forcelist
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Sep 9, 2024
1 parent dd10049 commit 2f246e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion caveclient/session_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"pool_maxsize": requests.adapters.DEFAULT_POOLSIZE,
"retry_backoff": 0.1,
"backoff_max": 120,
"status_forcelist": [502, 503, 504],
}


Expand Down Expand Up @@ -42,7 +43,7 @@ def patch_session(
retries = Retry(
total=max_retries,
backoff_factor=retry_backoff,
status_forcelist=tuple(range(401, 600)),
status_forcelist=SESSION_DEFAULTS["status_forcelist"],
allowed_methods=frozenset(["GET", "POST"]),
backoff_max=SESSION_DEFAULTS["backoff_max"],
raise_on_status=False,
Expand Down

0 comments on commit 2f246e8

Please sign in to comment.