NVIDIA / pyxis

Container plugin for Slurm Workload Manager
Apache License 2.0
263 stars 28 forks source link

integration with slurmrestd #115

Open jamesbeedy opened 1 year ago

jamesbeedy commented 1 year ago

Hello,

I am very excited about this project.

My slurm use case primarily involves submitting jobs via slurmrestd.

Can you help me understand how I can supply pyxis sbatch parameters via slurmrestd?

Thank you

flx42 commented 1 year ago

Unfortunately I don't think it's going to be possible as it doesn't look like there is an integration between slurmrestd and command-line arguments from SPANK plugins.

The simpler approach is probably to stick with srun --container-image instead of trying to use sbatch --container-image with slurmrestd:

"script": "#!/bin/bash\nsrun --container-image centos:7 bash -c 'cat /etc/os-release'"

But if you have a strong use case for supporting SPANK plugins with slurmrestd, you could submit a RFE if you have a support contract: https://bugs.schedmd.com/

jamesbeedy commented 1 year ago

@flx42, thank you for the response. We do have a strong use case and I will submit an RFE.