question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offer progress indication

See original GitHub issue

I might just be thick, but when searching through the web and documentation, I could not find a way to get gcloud to report upload / transfer progress to the callee:

# Sit blocked & mute for N minutes
bucket.blob(path).upload_from_filename(local_path)

One pattern I saw recently from docker-py allows you to set an optional stream parameter, in which case the function returns an iterator with json strings:

progress = docker_client.pull(repository=x, tag=y, stream=True)

for line in progress:
    update = json.loads(line)
    # do something with line - fields include current bytes, total bytes

A quick search indicates this could be related to #1077.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
bachirelkhourycommented, Jun 21, 2019

Has there been any development on this, or perhaps you can offer an alternative? we have a very large upload (Gb) and would need to monitor and track the progress of the upload. Is there anyway to do that?

2reactions
PetrochukMcommented, Jun 21, 2019

Same!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Progress indicators - Status - Human Interface Guidelines
Be as accurate as possible when reporting advancement in a determinate progress indicator. Consider evening out the pace of advancement to help people...
Read more >
The Power of The Progress Bar as a Usability Feature
What Is a Progress Bar? Progress bars are visual representations of how much progress a site visitor has made toward accomplishing a specific...
Read more >
The ultimate guide to tracking your progress toward a credit ...
American Express no longer offers a way to track your progress toward earning your sign-up bonus. Thankfully, Amex has a user-friendly chat ...
Read more >
Deal Progression Indicators - Salesloft Help Center
Deal Progression Indicators ; Recent changes to the deal amount; Close date changes ; The new amount value · Who made the amount...
Read more >
Best Practices For Animated Progress Indicators
A wait-animation progress indicator is the most common form of providing a ... Thus, you should provide feedback to the user about what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found