[slurm-users] Recording variables

Chris Samuel chris at csamuel.org
Sun Feb 10 23:53:22 UTC 2019


On Sunday, 10 February 2019 3:42:52 PM PST McCarthy, Adam wrote:

> We deal with sensitive data linked to projects with an alphanumeric ID. We
> would like to record this ID against the job submission for accounting,
> have it available as an environment variable for the job, and ideally
> reject the job if the project ID is not supplied.
> 
> I have been considering writing a job submit plugin, but is there already a
> mechanism to associate a custom variable with a job?

How about just using the account name for that from the Slurm accounting 
system?  You can make that a requirement at submission time.  It's also 
exposed inside the job as ${SLURM_JOB_ACCOUNT}.

https://slurm.schedmd.com/sacctmgr.html
https://slurm.schedmd.com/accounting.html

All the best,
Chris
-- 
  Chris Samuel  :  http://www.csamuel.org/  :  Berkeley, CA, USA






More information about the slurm-users mailing list