intuit / simple_deploy

Maintenance Mode - Simple Deploy is an opinionated CLI tool for managing AWS Cloud Formation Stacks.
MIT License
64 stars 22 forks source link

Catch Rate Exceeded errors and sleep #159

Open weavenet opened 11 years ago

weavenet commented 11 years ago

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'

thbishop commented 11 years ago

:+1: