linuxdynasty / awsretry

Decorate your AWS Boto3 Calls with AWSRetry.backoff(). This will allows your calls to get around the AWS Eventual Consistency Errors.
45 stars 21 forks source link

Add 3 more exceptions #8

Closed jeshan closed 5 years ago

jeshan commented 5 years ago

I use boto3 quite extensively and have found that I need to retry a few more exceptions. I could declare it in the decorator but I think it's fairly undifferentiated, so you can make it available to all of us.

TooManyRequestsException: often thrown by Api Gateway ThrottlingException: many services incl. CodeDeploy and DynamoDB. LimitExceededException: by ApiGateway, ACM, etc