Ticket 1752

Summary: SLURM_JOB_GID or SLURM_JOB_GROUP in taskProlog
Product: Slurm Reporter: Akmal Madzlan <akmalm>
Component: OtherAssignee: Unassigned Developer <dev-unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: 5 - Enhancement    
Priority: --- CC: brian, da
Version: 14.11.5   
Hardware: Linux   
OS: Linux   
Site: DownUnder GeoSolutions Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: 17.02.0-pre4 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Akmal Madzlan 2015-06-17 18:21:06 MDT
From - http://slurm.schedmd.com/prolog_epilog.html

SLURM_JOB_GID Group ID of the job's owner. Available in PrologSlurmctld and EpilogSlurmctld only.

SLURM_JOB_GROUP Group name of the job's owner. Available in PrologSlurmctld and EpilogSlurmctld only.

Is it possible to make both or one of these available in task prolog?
Comment 1 Moe Jette 2016-12-15 09:10:46 MST
I've just added SLURM_JOB_GID in the following commit:
https://github.com/SchedMD/slurm/commit/39fa402905d5857c74f9347602ea886d96c367a8

This will be available in version 17.02 when released. You can probably patch earlier versions of Slurm pretty easily if desired as this only involves a one-line change to the code.