forked from kenzuya/unshackle
fix(session): cap Retry-After on the requests retry policies
A server-sent Retry-After could park a run for up to six hours.
This commit is contained in:
@@ -61,7 +61,7 @@ class MetadataProvider(metaclass=ABCMeta):
|
||||
retry = Retry(
|
||||
total=3,
|
||||
backoff_factor=1,
|
||||
status_forcelist=[429, 500, 502, 503, 504],
|
||||
status_forcelist=[500, 502, 503, 504],
|
||||
allowed_methods=["GET", "POST"],
|
||||
respect_retry_after_header=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user