Skip to content

[qob] Use one batch for the lifetime of a hl.ServiceBackend #12464

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

Merged
merged 8 commits into from
Nov 23, 2022

Conversation

daniel-goldstein
Copy link
Contributor

@daniel-goldstein daniel-goldstein commented Nov 15, 2022

CHANGELOG: When using Query-on-Batch, all jobs for a single hail session are inserted into the same batch instead of one batch per action.

@daniel-goldstein daniel-goldstein force-pushed the qob-pipeline-one-batch branch 4 times, most recently from f6954c6 to f28e217 Compare November 21, 2022 16:52
@daniel-goldstein daniel-goldstein marked this pull request as ready for review November 21, 2022 19:17
@daniel-goldstein daniel-goldstein changed the title Qob pipeline one batch [qob] Use one batch for the lifetime of a hl.ServiceBackend Nov 21, 2022
@daniel-goldstein
Copy link
Contributor Author

This is pseudo-stacked on #12490 in that I made a change here to serialize _async_execute_many but in #12490 I remove it altogether which takes care of the complications of multiple concurrent Query Drivers in the same batch.

Copy link
Contributor

@danking danking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

progress=progress)
# FIXME Should we not `print`?
url = deploy_config.external_url('batch', f'/batches/{self._batch.id}/jobs/{j.job_id}')
print(f'Submitted to batch {self._batch.id}, see {url}')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm somewhat inclined to not print. The progress bar should provide all necessary information

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to axe that.

@danking danking merged commit 7070635 into hail-is:main Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants