-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
overcome rate limiting of ListStacks calls #689
Conversation
e7b4c09
to
5361eaa
Compare
LGTM! Nice work @errordeveloper |
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.
Thanks for the help on this... LGTM!
This often causes a lot of paging, and we only need to list deleted stacks explicitly in one special case that requires double check if stack had already been deleted when an error has occurred.
180a5ec
client.DefaultRetryer | ||
} | ||
|
||
var _ request.Retryer = &LoggingRetryer{} |
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.
what is this variable here? Is it used? Is it supposed to be here?
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.
It is a common way of validating that given struct implements the interface.
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.
It is a common way of validating that given struct implements the interface.
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.
Ah, ok, thanks
Description
This introduces custom retry handler (copied from kops).
I am not sure why
DefaultRetryer
didn't work, but this adds debug logs, so we will get a better idea of when the retry delay kicks in.Most importantly it adds a built-in filter for non-deleted stacks that is set by default, and removed an extraneous call to
ListStacks
.This fixes #567.
Checklist
make build
)make test
)