-
Notifications
You must be signed in to change notification settings - Fork 132
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
TDQM hook with overrides #845
Comments
Hmm this might be a bit tricky -- we'll probably want to add a hamilton/hamilton/lifecycle/api.py Line 271 in 046ed59
Everything will be backwards compatible, but not super simple. |
This seems low priority, but good to have it documented! Thanks for the details |
We could just make sure there's a post graph hook implementation that makes sure the bar hits 100% if there was no error? |
Hi @skrawcz following up from issue #1186
nodes_to_execute = set(all_nodes) - set(user_defined_nodes) | set(overrides.keys()) OR nodes_to_execute = set(all_nodes)
if success and hasattr(self, 'progress_bar'):
self.progress_bar.update_to_completion() |
@rajatkriplani Cool feel free to create a PR with it. If there isn't a test we'll need to add one. |
Current behavior
When using
hamilton.plugins.h_tdqm.ProgressBar()
, the progress bar uses "the number of nodes to return" as denominator and "the number of nodes executed" as numerator. However, passing values to.execute(overrides=...)
counts towrds the first, but not the latter. Code runs to completion but the progress bar completes without reaching 100%Screenshots
Dataflow
Execution
The text was updated successfully, but these errors were encountered: