[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.
pull/27840/merge
colin-hanson-zocdoc 7 years ago committed by Ryan Brown
parent 2276c5f206
commit ac15df8ab9

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

Loading…
Cancel
Save