Skip to content

job_options with 'constraint' gives InvalidJobDescriptionException #38

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

Closed
jhidding opened this issue Mar 5, 2018 · 3 comments
Closed

Comments

@jhidding
Copy link

jhidding commented Mar 5, 2018

Running a job from PyXenon with

scheduler.submit_interactive_job(
    ....,
    options={'constraint': 'TitanX'})

gives the following GRPC error:

(StatusCode.FAILED_PRECONDITION, nl.esciencecenter.xenon.schedulers.InvalidJobDescriptionException: slurm adaptor: Given Job option "constraint" not supported)

Without the given job option, the job runs successfully.

@jhidding
Copy link
Author

jhidding commented Mar 5, 2018

similarly, using the xenon-cli interface:

xenon scheduler slurm --location ssh://fs0.das5.cs.vu.nl/home/jhidding --username jhidding --certfile ~/.ssh/id_rsa --prop xenon.adaptors.schedulers.ssh.strictHostKeyChecking=false exec --option constraint=TitanX cat
slurm adaptor: Given Job option "constraint" not supported

@sverhoeven
Copy link
Member

Setting a constraint like that is not supported until xenon-middleware/xenon#582 is implemented.

See xenon-middleware/xenon#556 for allowed options

sverhoeven added a commit that referenced this issue Mar 14, 2018
@sverhoeven
Copy link
Member

Use scheduler_arguments to specify constraints like --constraint="TitanX"

Fixed in 5fd4719

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

No branches or pull requests

2 participants