simple_deploy icon indicating copy to clipboard operation
simple_deploy copied to clipboard

Catch Rate Exceeded errors and sleep

Open weavenet opened this issue 12 years ago • 1 comments

Cloud Formation has a very sensitive rate limit for their API. We should not fail a build, but sleep and exponentially backoff when these errors are hit:

2013-02-18 08:39:34 -0800 ERROR : Rate exceeded /Users/bweaver/.rvm/gems/ruby-1.9.3-p327@simple_deploy/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation/error.rb:25:in block in process': Rate e xceeded (Stackster::Exceptions::CloudFormationError) from /Users/bweaver/.rvm/gems/ruby-1.9.3-p327@simple_deploy/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation/error.rb:16:ineach' from /Users/bweaver/.rvm/gems/ruby-1.9.3-p327@simple_deploy/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation/error.rb:16:in process' from /Users/bweaver/.rvm/gems/ruby-1.9.3-p327@simple_deploy/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation.rb:45:inrescue in describe _stack'

weavenet avatar Feb 18 '13 16:02 weavenet

:+1:

thbishop avatar Sep 13 '13 20:09 thbishop