-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding better retry logic to creation, fixes #179 (hopefully) #184
Conversation
server.create_tags(:tags => tags) | ||
# Unfortunately the AWS SDK doesn't actually wait correctly for instance existence, so we | ||
# need to retry if they throw a `server with id doesn't exist` error | ||
Retryable.retryable(:tries => 10, :sleep => lambda { |n| [2**n, 10].min }) do |retries, _| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe bump this to 30 seconds max
also, 💯 |
Here's the promised stacktrace
|
This is the call to |
I don't even |
36768d9
to
b24b3ab
Compare
you should throw tag server in there as well. |
I hate throwing |
b24b3ab
to
ab5a8f2
Compare
didn't work :(
|
4caa5c8
to
0533c7f
Compare
Adding better retry logic to creation, fixes #179 (hopefully)
The AWS Waiters still appear to be not correctly waiting for existence (see aws/aws-sdk-ruby#859). So adding better retry logic and outputting.
\cc @jaym @fnichol
Fixes #179
Rolls back #171 because that waited too long to provide output