add backoff factor
This commit is contained in:
parent
1311ef2ff2
commit
225c7ecabb
@ -14,8 +14,8 @@ class WPExport:
|
||||
|
||||
self._request = requests.Session()
|
||||
|
||||
retries = Retry(total=5,
|
||||
status_forcelist=[429, 500, 502, 503, 504])
|
||||
retries = Retry(total=10,
|
||||
status_forcelist=[429, 500, 502, 503, 504], backoff_factor=2)
|
||||
|
||||
self._request.mount('http://', HTTPAdapter(max_retries=retries))
|
||||
|
||||
|
@ -16,8 +16,8 @@ class WPimport:
|
||||
|
||||
self._request = requests.Session()
|
||||
|
||||
retries = Retry(total=5,
|
||||
status_forcelist=[429, 500, 502, 503, 504])
|
||||
retries = Retry(total=10,
|
||||
status_forcelist=[429, 500, 502, 503, 504], backoff_factor=2)
|
||||
|
||||
self._request.mount('http://', HTTPAdapter(max_retries=retries))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user