-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
compute/metadata: add retries #4642
Comments
Can probably borrow the logic used in apiaries today. I think that should cover the different edge cases well enough: https://github.com/googleapis/google-api-go-client/blob/8258338b24dd72029fd1705ff1a5fa15d55ce17c/internal/gensupport/resumable.go#L233-L258 |
/sub |
…4648) This was reported internally to be causing issues. This package is used by some of our auth flows so it should be good to make this package more resilient to transient failures. Implementation inspired by what we do for some of our http based services. Because this package is currently not context aware I needed to add attempts so retrying does not happen forever. Five attempts was arbitrarily chosen. Fixes: #4642 Release-As: 0.94.0
@hostirosti This change is on HEAD. I will cut a release that includes this change on Monday, waiting for some other stuff to land first. |
FYI, the commit, which fixes the issue, led to significant binary size increase for apps which import |
Add retries consistent to what is being done in other languages.
The text was updated successfully, but these errors were encountered: