Commit 21d6881a authored by Bruno Duyé's avatar Bruno Duyé

Add 502 to request force status list

parent 463618b7
Pipeline #14357 passed with stage
in 18 seconds
......@@ -56,7 +56,7 @@ def main():
# http://www.coglib.com/~icordasc/blog/2014/12/retries-in-requests.html
# backoff_factor=2 will make sleep for 2 * (2 ^ (retry_number - 1)), ie 0, 2, 4, 8, 16, 32 ...
requests_session.mount('http://', HTTPAdapter(max_retries=Retry(total=50,
backoff_factor=2, status_forcelist=[500, 503, 504])))
backoff_factor=2, status_forcelist=[500, 502, 503, 504])))
# Parse command line arguments
args = docopt(__doc__.format(self_filename=os.path.basename(__file__)))
target_dir = args['<target_dir>']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment