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

Changes made in jupyter notebook ipynb file are not uploaded to the bucket #2

Closed
limbuu opened this issue Jan 30, 2020 · 5 comments
Closed
Assignees
Labels
api: storage Issues related to the googleapis/python-storage API. needs more info This issue needs more information from the customer to proceed. type: question Request for information or clarification. Not an issue.

Comments

@limbuu
Copy link

limbuu commented Jan 30, 2020

We upload jupyter notebook .ipynb file in google bucket. Whenever we make changes and upload the same file the changes are not being uploaded in the bucket. Looks like there is cache issue while uploading/patching the changed file. How to fix the issue??
We use the following code:

    def upload_blob(self, file_to_upload):
        """ Uploads file to the bucket"""
        blob = self.bucket.blob(file_to_upload)
        blob.upload_from_file(file_to_upload)
        print('File {} uploaded to {}'.format(file_to_upload, file_to_upload))
@HemangChothani
Copy link
Contributor

@limbuu I think blob.cache_control parameter will help you regarding cache issue.

@crwilcox crwilcox transferred this issue from googleapis/google-cloud-python Jan 31, 2020
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Jan 31, 2020
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Feb 3, 2020
@jkwlui jkwlui added type: question Request for information or clarification. Not an issue. and removed 🚨 This issue needs some love. triage me I really want to be triaged. labels Feb 4, 2020
@HemangChothani HemangChothani added the needs more info This issue needs more information from the customer to proceed. label Apr 30, 2020
@HemangChothani
Copy link
Contributor

@limbuu Any update on this issue?

@HemangChothani
Copy link
Contributor

@limbuu Any update?

@limbuu
Copy link
Author

limbuu commented Jun 1, 2020

sorry @HemangChothani was not working in this issue for a while, tried the snippet, it hasn't worked so far.

@tseaver tseaver changed the title Storage Bucket: Changes made in jupyter notebook ipynb file is not uploaded in the bucket Changes made in jupyter notebook ipynb file are not uploaded to the bucket Aug 17, 2020
@tseaver
Copy link
Contributor

tseaver commented Aug 17, 2020

@limbuu Blob.upload_from_file expects to be passed a file-like object, not a filename. Please use Blob.upload_from_filename instead.

@tseaver tseaver closed this as completed Aug 17, 2020
cojenco added a commit that referenced this issue May 9, 2024
* feat: instrument metadata ops with Otel tracing

* update README plus test

* update decorator name per review session

* fix typo in readme
cojenco added a commit that referenced this issue Jun 26, 2024
* feat: introduce OpenTelemetry Tracing decorators (#1257)

* feat: introduce OpenTelemetry Tracing decorators

* update test coverage

* add tests, update fixture

* update noxfile, extras; remove print

* update unit test

* review comments

* feat: instrument metadata ops with OTel tracing (#2) (#1267)

* feat: instrument metadata ops with Otel tracing

* update README plus test

* update decorator name per review session

* fix typo in readme

* feat: OTel tracing media ops initial instrumentation (#1280)

* feat: OTel tracing media ops initial instrumentation

* use download class name as span name

* avoid asserting filtered warnings from otel per open-telemetry/opentelemetry-python#3164

* add copyright and preview note

* comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. needs more info This issue needs more information from the customer to proceed. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants