Skip to content
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

Neuro job submit: incorrect cli options are recognized as image name #526

Closed
atemate opened this issue Feb 19, 2019 · 4 comments
Closed

Comments

@atemate
Copy link
Contributor

atemate commented Feb 19, 2019

$ neuro submit -h
Using image '-h'
Job ID: job-87efb585-1ace-45b4-acec-2f0b328ff080 Status: pending
Shortcuts:
  neuro job status job-87efb585-1ace-45b4-acec-2f0b328ff080  # check job status
  neuro job monitor job-87efb585-1ace-45b4-acec-2f0b328ff080 # monitor job stdout
  neuro job top job-87efb585-1ace-45b4-acec-2f0b328ff080     # display real-time job telemetry
  neuro job kill job-87efb585-1ace-45b4-acec-2f0b328ff080    # kill job
Status: pending ContainerCreating [1.5 sec] /
@asvetlov
Copy link
Contributor

That's an interesting problem.
-h option is not supported, use --help instead.
That's why -h is processed as the first positional argument.
Need to investigate how to process the case and report the error early.

@atemate
Copy link
Contributor Author

atemate commented Feb 21, 2019

any other option can be recognised as the image name:

$ neuro job submit --no-wait-start -X
Using image '-X'

@atemate
Copy link
Contributor Author

atemate commented Feb 21, 2019

Recently, I was asked by the researchers, why did their code not work: neuro job submit --cpu 1 --gpu 2 --mem 3 <image> <command>, so the command was trying to submit image --mem and failed without a proper error message

@atemate
Copy link
Contributor Author

atemate commented Mar 26, 2019

as it was discussed on today's eng-weekly, users often make mistakes in --preemptible/--non-preemptible options, so they submit jobs with image "--preemptible"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants