-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
gcloud: Use DEFAULT_RETRY when uploading a file. #1156
Conversation
What motivates this change? |
Recently I have had issues with Google Cloud Storage. Some times I got 503 and I had few data losses. GCS documentation says that when server answer 503 you need retry and use retry policy to automate it. The default retry policy of |
Okay, this change looks fine if you fix CI. Will need a rebase. |
Rebase is now done. |
Thanks, can you please fix the tests. |
Now tests are fixed. |
I fixed those flake8 issues. |
@Hatell what do you think about adding For whatever reason it looks like the client lib uses |
I think that adding retry to delete is good idea. Can you do that now? I can do it tomorrow. |
Not sure if I have permissions to push to your branch, will let you do it. |
Retry is added to delete_blob call. |
Use a default retry policy when uploading a file to Google Storage.