-
Notifications
You must be signed in to change notification settings - Fork 208
Using retry instead of waiting for a specific duration of time #1451
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
Conversation
| // RequestRetryTime represents the number of times calling to AWS resource control. | ||
| RequestRetryTime = 3 | ||
| // RetryIntervalDuration represents duration time between retry. | ||
| RetryIntervalDuration = 1 * time.Minute |
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.
How about moving these into the executor/lambda package as private consts?
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.
Since it's an attribute attached to the AWS API, I think it would be better if it were placed in the AWS client wrapper package.
On the other hand, I planned to use those constants here too UpdateFunction src ( UpdateFunctionConfig has to wait (retry) several times until UpdateFunctionCode process finished in the AWS server )
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.
Since it's an attribute attached to the AWS API
I am not sure they belong to AWS API or the CloudProvider callers.
But just a nit. 👍
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, let's move it to the callers later if necessary 😄
|
/lgtm |
nakabonne
left a comment
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!
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1449
Does this PR introduce a user-facing change?: