Andy,,
I've applied your patch to the version 2.3 code base for release later
this year. Note that the "%w" option is already is use, so I change it
to "%W" instead (one of the few unused letters). The final version of
the patch is here:
https://github.com/SchedMD/slurm/commit/cb173ce6db80a6b4c1b95f42f8c4b7333eae7795
Moe Jette
SchedMD LLC
Quoting Andrew Roosen <[email protected]>:
I want to hack together a way of restricting jobs to use only the
licenses they request. The simplest scheme I could come up with is
based on a prolog checking the current job for requested licenses
and "doing stuff' so only those jobs can access the licensed software.
There does not appear to be a way, however, to view information
about licenses except with sview, which is obviously not suitable
for scripting. Attached is a small patch that modifies squeue to be
able to display license information using the %w format option:
there aren't many letters left to choose from!
Cheers,
Andy Roosen