Increase the wait time in between failed API request retries.
This commit is contained in:
parent
8888282aff
commit
4d343f1b25
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ Release History
|
||||||
1.0.5 (unreleased)
|
1.0.5 (unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
- Nothing changed yet.
|
- Increase the wait time in between failed API request retries.
|
||||||
|
|
||||||
|
|
||||||
1.0.4 (2019-11-18)
|
1.0.4 (2019-11-18)
|
||||||
|
|
|
@ -141,7 +141,7 @@ class Mega:
|
||||||
|
|
||||||
@retry(
|
@retry(
|
||||||
retry=retry_if_exception_type(RuntimeError),
|
retry=retry_if_exception_type(RuntimeError),
|
||||||
wait=wait_exponential(multiplier=2, min=2, max=30)
|
wait=wait_exponential(multiplier=2, min=2, max=60)
|
||||||
)
|
)
|
||||||
def _api_request(self, data):
|
def _api_request(self, data):
|
||||||
params = {'id': self.sequence_num}
|
params = {'id': self.sequence_num}
|
||||||
|
|
Loading…
Reference in a new issue