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

Exposing "all" submit arguments #25

Open
moravveji opened this issue Nov 4, 2022 · 1 comment
Open

Exposing "all" submit arguments #25

moravveji opened this issue Nov 4, 2022 · 1 comment

Comments

@moravveji
Copy link

Hi.

As a newbie in Slurm, Lua and even spank-lua plugin, I have a confusion which I would like to share with you guys, and ask for your inputs.

For the management of our clusters, we are starting to use Slurm, and we would like to include some tailored plugins using the spank-lua plugin. However, when I go through the man spank-lua and also the spank.h, I have a feeling that not all sbatch/srun/salloc arguments are made accessible via the spank-lua. Please correct me if I am wrong.
Indeed, some options are, such as S_JOB_NNODES, but the list in spank.h is very limited to some cherry-picked subset of options and not all of them.

To give a concrete example which is also relevant in my case, I would like to set some policies for the values of --cluster or --partition submit arguments that users specify at submit time. However, I cannot find an ITEM to use in a call to spank:get_item(ITM) which exposes, e.g. the value of the --partition option.

My question is: How is it possible to expose "all" submit arguments of sbatch, salloc, srun commands inside the spank-lua plugin script?

Thanks in advance for your support.

@kcgthb
Copy link
Member

kcgthb commented Nov 8, 2022

As far as I can tell, the list of job attributes exposed to the SPANK plugins is at https://github.com/SchedMD/slurm/blob/master/slurm/spank.h#L134. The slurm-spank-lua plugin doesn't get access to more information than what's exposed there.

If you'd like to see that list extended, I'd recommend submitting a RFE at https://bugs.schedmd.com/

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