From 18d79dd34b46581191325ed6f16e26c3bee6303e Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Sun, 21 Jun 2020 17:45:23 -0400 Subject: [PATCH] * On custom sacct1.sh, include job (most recent) state as well. --- slurm/sacct1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slurm/sacct1.sh b/slurm/sacct1.sh index 5f6cffa..f62a06d 100755 --- a/slurm/sacct1.sh +++ b/slurm/sacct1.sh @@ -10,7 +10,7 @@ # - The timing field width accommodates up to hundreds of days. # - The accounting records corresponding to job steps are eliminated. -FIELDS_PRESET1=JobID,JobIDRaw,JobName%-20,User,Partition,Elapsed%12,NCPUS%5,CPUTime%12,TotalCPU%12,Submit,Start,End,NodeList%20 +FIELDS_PRESET1=JobID,JobIDRaw,JobName%-20,User,Partition,Elapsed%12,NCPUS%5,CPUTime%12,TotalCPU%12,Submit,Start,End,State,NodeList%20 filter_sacct_only_main_jobs () { awk '($2 ~ /^[0-9]+$/) || (FNR <= 2) { print }'