Tweaked the request retries logic.
We now send more retry requests that are less spaced apart.
This commit is contained in:
parent
40464f6e0d
commit
acae8e4e9d
@ -70,7 +70,7 @@ class BaseRequest( object ):
|
|||||||
headers = HEADERS,
|
headers = HEADERS,
|
||||||
timeout = timeout )
|
timeout = timeout )
|
||||||
|
|
||||||
@retries( 3, delay = 0.5 )
|
@retries( 5, delay = 0.5, backoff = 1.5 )
|
||||||
def DelayedPostData( data, handler ):
|
def DelayedPostData( data, handler ):
|
||||||
return requests.post( _BuildUri( handler ),
|
return requests.post( _BuildUri( handler ),
|
||||||
data = json.dumps( data ),
|
data = json.dumps( data ),
|
||||||
|
Loading…
Reference in New Issue
Block a user