[cloud] Extend AWSRetry to also retry on Throttling exceptions (#22698)

We use ansible+cloudformation pretty heavily in our CI environments and occasionally bump into throttling issues.  By adding this error code to the retry system we should be able to achieve better stability.
This commit is contained in:
colin-hanson-zocdoc 2017-08-07 09:53:20 -04:00 committed by Ryan Brown
parent 2276c5f206
commit ac15df8ab9

View file

@ -85,7 +85,8 @@ class AWSRetry(CloudRetry):
# https://github.com/boto/boto3/issues/876 (and linked PRs etc)
retry_on = [
'RequestLimitExceeded', 'Unavailable', 'ServiceUnavailable',
'InternalFailure', 'InternalError', 'TooManyRequestsException'
'InternalFailure', 'InternalError', 'TooManyRequestsException',
'Throttling'
]
not_found = re.compile(r'^\w+.NotFound')