-
Notifications
You must be signed in to change notification settings - Fork 151
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
Blob.rewrite()
does not work with batches.
#32
Comments
I'm afraid that the current batch implementation does not deal well with any methods whose return values depend on the response payload (as opposed to just being able to update the relevant blobs / buckets from those responses when the batch completes). Adding support for such methods would be a large undertaking. |
Could the issue be left open and marked as a future enhancement request? |
@bits01 I have added this issue to our feature request project |
Thank you. Should the issue be re-opened then? It's currently marked |
I think, it can be done in fashion of: googleapis/google-cloud-python#8618. But first it's better to deal with 8618 |
blob.rewrite()
does not work with batches.
@IlyaFaer, what is the issue that needs to be dealt with first? googleapis/google-cloud-python#8616 doesn't seem related. |
@tseaver, sorry, mistake, 8618. I'm waiting for review in it, and if changes will be accepted, we could use something alike in this issue |
Just to be clear: at this moment the most reliable way to copy a lots of files from one bucket to another (retry strategy, batch requests and object rewrite) in python is I was comparing contributors here to gsutil repo, and looks like are totally different and isolated teams, why? |
blob.rewrite()
does not work with batches.Blob.rewrite()
does not work with batches.
Noted during review: |
This is also an issue when trying to use |
Closing; We've added clarifications on the limited Batch support in the python client, see details in #1045 |
google-cloud-storage v1.8.0
Not sure whether rewrites are supposed to work when batched, but it would be nice and useful if they did, otherwise there's no efficient way to copy lots of blobs across buckets in different locations or with different encryption keys.
Example:
Traceback:
The text was updated successfully, but these errors were encountered: