[qob,batch] Add cost to BatchProgressBar#14876
Merged
Merged
Conversation
Contributor
Author
|
Can someone copy and paste the error here? Or get me the test failure in a different way if it's long? |
Contributor
Author
|
This looks like it's passing now :) |
chrisvittal
approved these changes
May 7, 2025
chrisvittal
left a comment
Collaborator
There was a problem hiding this comment.
Thanks Jackie! The only failures you're getting now are lint errors, you'll need to ruff format your code. Then it should be fully green.
Contributor
Author
|
|
Collaborator
ruff format hail --diff
--- hail/python/hailtop/batch_client/aioclient.py
+++ hail/python/hailtop/batch_client/aioclient.py
@@ -507,7 +507,9 @@
else:
description += url
- with progress.with_task(description, total=status['n_jobs'], disable=disable_progress_bar, cost=status['cost']) as progress_task:
+ with progress.with_task(
+ description, total=status['n_jobs'], disable=disable_progress_bar, cost=status['cost']
+ ) as progress_task:
while True:
status = await self.status()
progress_task.update(None, total=status['n_jobs'], completed=status['n_completed'], cost=status['cost'])
@@ -706,7 +708,10 @@
while True:
status = await self.status()
progress_task.update(
- None, total=status['n_jobs'] - starting_job + 1, completed=status['n_completed'] - starting_job + 1, cost=status['cost']
+ None,
+ total=status['n_jobs'] - starting_job + 1,
+ completed=status['n_completed'] - starting_job + 1,
+ cost=status['cost'],
)
if status['complete']:
return status
1 file would be reformatted, 461 files already formatted |
Contributor
Author
|
Can someone check whether this worked now? It looks like there needs to be 2 approvals now? |
Contributor
Author
|
Could someone please post the new error? Thanks! |
Collaborator
|
Just lints. Fixed. |
patrick-schultz
approved these changes
May 16, 2025
patrick-schultz
left a comment
Member
There was a problem hiding this comment.
This should be a nice qol improvement. Thanks Jackie!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Adds cost information to the progress bar
Security Assessment
Impact Description
Client-side change only
(Reviewers: please confirm the security impact before approving)