We are running slurm 2.2.3 on our cluster. We have a wrapper script for sbatch, and want all job submission to go through that wrapper. One way to do that would be to set an environment variable in the wrapper, and check that inside the lua job_submit plugin.
Is it possible to check environment variables in lua job_submit plugins? And is it possible to write a custom message out to stderr from the plugin (to tell the user to use the wrapper)? Or are there better ways of achieving the same result? (We have considered moving /usr/bin/sbatch away to a "secret" place, and place our wrapper in /usr/bin/sbatch, but that makes upgrades error-prone.) -- Bjørn-Helge Mevik, dr. scient, Research Computing Services, University of Oslo
