Repository navigation
[hailctl] clarify suggested use of -- and allow it in hailctl batch submit - #13447
Merged
Merged
Conversation
…ubmit CHANGELOG: Resolves hail-is#13446. In all three submit commands (batch, dataproc, and hdinsight), Hail now allows and encourages the use of -- to separate arguments meant for the user script from those meant for hailctl. In hailctl batch submit, option-like arguments, for example "--foo", are now supported before "--" if and only if they do not conflict with a hailctl option.
jigold
previously requested changes
Aug 16, 2023
jigold
left a comment
Contributor
There was a problem hiding this comment.
I assume you tested this and that's why the ValueErrors were there?
|
|
||
| hailctl batch submit --image-name docker.io/image my_script.py -- some-argument --animal dog | ||
| ''' | ||
| raise ValueError((name, image_name, files or [], output, script, [*(arguments or []), *ctx.args])) |
Contributor
There was a problem hiding this comment.
Is this raise not supposed to be here?
| after the name of the script. | ||
| ''' | ||
| dataproc_submit(name, script, files, pyfiles, properties, gcloud_configuration, dry_run, region, ctx.args) | ||
| raise ValueError((name, script, files, pyfiles, properties, gcloud_configuration, dry_run, region, [*(arguments or []), *ctx.args])) |
| $ hailctl hdinsight submit name account password script.py --image-name docker.io/image my_script.py -- some-argument --animal dog | ||
| ''' | ||
| hdinsight_submit(name, storage_account, http_password, script, ctx.args) | ||
| raise ValueError((name, storage_account, http_password, script, [*(arguments or []), *ctx.args])) |
Contributor
Author
|
FWIW, the helps look like this now: |
jigold
approved these changes
Aug 18, 2023
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.
CHANGELOG: Resolves #13446. In all three submit commands (batch, dataproc, and hdinsight), Hail now allows and encourages the use of -- to separate arguments meant for the user script from those meant for hailctl. In hailctl batch submit, option-like arguments, for example "--foo", are now supported before "--" if and only if they do not conflict with a hailctl option.