Skip to content
Snippets Groups Projects
Commit 53eb3702 authored by Moe Jette's avatar Moe Jette
Browse files

Pick up jobid from SLURM_JOBID or SLURM_JOB_ID if set.

parent 4a70cab0
No related branches found
No related tags found
No related merge requests found
...@@ -667,6 +667,8 @@ struct env_vars { ...@@ -667,6 +667,8 @@ struct env_vars {
}; };
env_vars_t 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 }, {"SLAUNCH_JOBID", OPT_INT, &opt.jobid, &opt.jobid_set },
{"SLURMD_DEBUG", OPT_INT, &opt.slurmd_debug, NULL }, {"SLURMD_DEBUG", OPT_INT, &opt.slurmd_debug, NULL },
{"SLAUNCH_CORE_FORMAT", OPT_CORE, NULL, NULL }, {"SLAUNCH_CORE_FORMAT", OPT_CORE, NULL, NULL },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment