Hello,

How to add an epilog to the job.log I got from running "sbatch -o job.log 
job.sh" ?
I would like to run "scontrol show job $SLURM_JOB_ID" in the epilog (track job 
info).

I tried to play with Epilog and TaskEpilog in slurm.conf: but seems not to work.
Are these the correct ones ? Or did I misunderstood something along the way ?

Franck

Note: I got what I expected with srun and SrunEpilog. Would like to get the 
same with sbatch.

>> more sbatch_epilog.sh
#!/bin/bash
#
# Slurm epilog

echo ""
echo "==============SLURM===EPILOG=============="
SLURM_JOB_INFO="$(/path/to/scontrol show job "$SLURM_JOB_ID")"
echo "print scontrol show job $SLURM_JOB_ID"
echo "print $SLURM_JOB_INFO"
echo "=========================================="


Reply via email to