-
Notifications
You must be signed in to change notification settings - Fork 184
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
allow to increase total count on most progress bars, fixes incorrect output in load stage #2100
Conversation
✅ Deploy Preview for dlt-hub-docs canceled.
|
@@ -333,19 +383,28 @@ def update( | |||
bar = alive_bar(total=total, title=desc, **self.alive_kwargs) | |||
self._bars_contexts[key] = bar | |||
bar = self._bars[key] = bar.__enter__() | |||
self._bars_counts[key] = 0 | |||
else: | |||
# TODO: implement once total change is supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alive bars don't seem to support updating the total, you can create a new one and remember the old settings, but then a new bar appears in the ui, and the old half files one stays..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alive is just for fun. so OK :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -333,19 +383,28 @@ def update( | |||
bar = alive_bar(total=total, title=desc, **self.alive_kwargs) | |||
self._bars_contexts[key] = bar | |||
bar = self._bars[key] = bar.__enter__() | |||
self._bars_counts[key] = 0 | |||
else: | |||
# TODO: implement once total change is supported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alive is just for fun. so OK :)
Description
Adds support for increasing total on progress bars.