Ticket 14045

Summary: account as format option in sprio
Product: Slurm Reporter: Naveed Near-Ansari <naveed>
Component: User CommandsAssignee: Ben Glines <ben.glines>
Status: RESOLVED FIXED QA Contact:
Severity: 5 - Enhancement    
Priority: ---    
Version: 21.08.8   
Hardware: Linux   
OS: Linux   
See Also: https://bugs.schedmd.com/show_bug.cgi?id=14210
Site: Caltech 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: 23.02 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Naveed Near-Ansari 2022-05-10 19:05:37 MDT
Hi,  This is a feature request for future versions.  We would find it useful to be able to see the accounts for the jobs when using sprio.  We heavily use accounts as the primary fairshare element, and being able to quickly see accounts of the jobs in sprio would be helpful.

Thanks.
Comment 13 Ben Glines 2022-06-06 14:33:45 MDT
Hi Naveed,

We have added an "Account name" type specification to sprio. 

Example:
> $ sbatch -N1 -wn-1 --account="test" --wrap="sleep 100000"
> Submitted batch job 120
> $ sbatch -N1 -wn-1 --account="test" --wrap="sleep 100000"
> Submitted batch job 121

Use %o for "Account name":
> $ sprio -o "%.10i %.10o %.10Y"
>      JOBID    ACCOUNT   PRIORITY
>        121       test          1

This feature is currently set to be available in 23.02.
Comment 14 Ben Glines 2022-06-13 15:20:37 MDT
See commits b33ef80f to 885369a4 on https://github.com/SchedMD/slurm to see these changes. Let me know if you have any further questions.
Comment 15 Naveed Near-Ansari 2022-06-13 15:21:34 MDT
i really appreciate it. is there any estimate on a release date?
Comment 16 Ben Glines 2022-06-15 10:10:09 MDT
The estimated release date is sometime around February 2023. We have major releases every 9 months, and just had the last major release in May (22.05).

See https://slurm.schedmd.com/quickstart_admin.html#upgrade for how our versioning works. Basically 23.02 == 2023.February