You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When boto hits a RateLimitExceeded, it uses exponential backoff. However, the issue can persist as the default retry attempt is set to 5. Using the code below, that default may be changed to any reasonable value, in this example 10.
This could be a configurable value in DynamoDB or hard coded (less desirable). If configurable, each Session have it's own value, although that is likely overengineering.
The code below appears to require boto/botocore version 1.6.0
from botocore.session import Session
from botocore.config import Config
s = Session()
# Will retry any method call at most 10 times
c = s.create_client('s3', config=Config(retries={'max_attempts': 10}))
The text was updated successfully, but these errors were encountered:
When boto hits a RateLimitExceeded, it uses exponential backoff. However, the issue can persist as the default retry attempt is set to 5. Using the code below, that default may be changed to any reasonable value, in this example 10.
This could be a configurable value in DynamoDB or hard coded (less desirable). If configurable, each Session have it's own value, although that is likely overengineering.
The code below appears to require boto/botocore version 1.6.0
Please refer to: boto/botocore#1260
The text was updated successfully, but these errors were encountered: