Find jobs automatically from Hail Batch and abort them through cromwell#732
Open
Find jobs automatically from Hail Batch and abort them through cromwell#732
Conversation
Contributor
|
This is super cool. Design wise I was curious about passing the auth token via config - is this something we can do with the Auth/key for the service account already in the driver job? |
Contributor
Author
|
@MattWellie actually you're right, using the command line E.g. https://batch.hail.populationgenomics.org.au/batches/615927/jobs/1 Do you think the right process for this script would be to use |
Contributor
|
I was thinking that the generation of the auth token should be done within the batch (probably using subprocess) so that it isn't passed via config or plain text, either of which would mean the key being available in the batch config/logs |
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.
See https://centrepopgen.slack.com/archives/C082NA58R7S/p1748476503887639
Now takes a Hail batch ID via user input, and an auth token via config input.
Queries the batch and finds all watch jobs that haven't succeeded. Extracts the workflow ID for each unsuccessful watch job through the Hail batch log, and submits the workflow ID to cromwell abort workflow API.
Then, extracts any successful sub-workflow outputs and writes analyses for them.