Skip to content
Snippets Groups Projects
Commit 9475070d authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge branch 'chines-master-patch-56530' into 'master'

Update roles/slurm-common/files/slurmctld.prolog

See merge request !468
parents e1645b03 98a24972
No related branches found
No related tags found
1 merge request!468Update roles/slurm-common/files/slurmctld.prolog
......@@ -7,10 +7,10 @@ fi
if [ "$JOBID" == "" ]; then
exit 0
fi
CPULINE=$(scontrol show job $JOBID -dd 2>&1)
CPULINE=$(/opt/slurm-latest/bin/scontrol show job $JOBID -dd 2>&1)
if [ $? -ne 0 ]; then
exit 0
fi
COMMENT=$(echo -e "$CPULINE" | perl -n -e'/.*Nodes=([\w\-\[\],]+) CPU_IDs=([\w\-,]+) Mem=(\w+) GRES=([\w:\(\)\-,]*).*/ && print "|$1|$2|$4|;"')
UPDATE=$(scontrol update job=$JOBID admincomment="$COMMENT" 2>&1)
UPDATE=$(/opt/slurm-latest/bin/scontrol update job=$JOBID admincomment="$COMMENT" 2>&1)
exit 0
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