Skip to content
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

Fix GCS upload retries #128

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Fix GCS upload retries #128

wants to merge 4 commits into from

Conversation

2015aroras
Copy link
Contributor

Issue: Our GCS uploads do not retry on transient errors. This is because the conditional retry logic expects a blob "generation" to be passed in. This generation lets the operation be sure that what it is doing is idempotent.

Fix: Pass in the generation to GCS upload

Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the random random import

@@ -2,6 +2,7 @@
import logging
import os
import pickle
import random
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import?

Suggested change
import random

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants