[slurm-users] Are SLURM_JOB_USER and SLURM_JOB_UID always constant and available
Christopher Samuel
chris at csamuel.org
Thu May 21 04:14:10 UTC 2020
On 5/20/20 7:23 pm, Kevin Buckley wrote:
> Are they set as part of the job payload creation, and so would ignore
> and node local lookup, or set as the job gets allocated to the various
> nodes it will run on?
Looking at git, it's a bit of both:
src/slurmd/slurmd/req.c:
setenvf(&env, "SLURM_JOB_UID", "%u", job_env->uid);
[...]
setenvf(&env, "SLURM_JOB_USER", "%s", job_env->user_name);
so the variables get set on the slurmd side (as you'd expect) but from
data that is sent along with the job.
All the best,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Berkeley, CA, USA
More information about the slurm-users
mailing list