From 53eb37027ca7af6cfac00963a78cd96f372ab5ab Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 15 Sep 2006 20:34:36 +0000 Subject: [PATCH] Pick up jobid from SLURM_JOBID or SLURM_JOB_ID if set. --- src/slaunch/opt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slaunch/opt.c b/src/slaunch/opt.c index 33d81413bef..e8ba8c4d85a 100644 --- a/src/slaunch/opt.c +++ b/src/slaunch/opt.c @@ -667,6 +667,8 @@ struct env_vars { }; env_vars_t env_vars[] = { + {"SLURM_JOBID", OPT_INT, &opt.jobid, &opt.jobid_set }, + {"SLURM_JOB_ID", OPT_INT, &opt.jobid, &opt.jobid_set }, {"SLAUNCH_JOBID", OPT_INT, &opt.jobid, &opt.jobid_set }, {"SLURMD_DEBUG", OPT_INT, &opt.slurmd_debug, NULL }, {"SLAUNCH_CORE_FORMAT", OPT_CORE, NULL, NULL }, -- GitLab