-
Notifications
You must be signed in to change notification settings - Fork 250
[hailctl] clarify suggested use of -- and allow it in hailctl batch submit #13447
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
[hailctl] clarify suggested use of -- and allow it in hailctl batch submit #13447
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove ValueError?
''' | ||
hdinsight_submit(name, storage_account, http_password, script, ctx.args) | ||
raise ValueError((name, storage_account, http_password, script, [*(arguments or []), *ctx.args])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove ValueError.
FWIW, the helps look like this now:
|
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.