Document recommendations for retrying blob.upload_from_filename #352
Labels
api: storage
Issues related to the googleapis/python-storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I'm seeing frequent 503 and 504 responses using the
blob.upload_from_filename()
method. An example trace looks like this:It looks like this method calls
blob.upload_from_file()
withnum_retries=None
, so there is no retry strategy applied. I also see that thenum_retries
argument is documented as deprecated.Does this library provide an alternative way to retry
blob.upload_from_filename()
orblob.upload_from_file()
? I can wrap these calls in retry logic of my own, but I see that retries are enabled by default for other functions.I'm using
google-cloud-storage==1.34.0
. I've already pulled ingoogle-resumable-media==1.20.0
so I should be getting the recent resumable media retry fixes that came with #342.Thanks for any tips on retrying uploads.
The text was updated successfully, but these errors were encountered: