Hello,
we also use an epilog to collect this information
#!/bin/sh
if [ x$SLURM_CLUSTER_NAME = "x" ] ; then
exit 0
fi
_DIR_=/home/slurm/${SLURM_CLUSTER_NAME}/${SLURM_JOB_USER}
if [ ! -d $_DIR_ ] ; then
mkdir ${_DIR_}
fi
if [ -d $_DIR_ ] ; then
scontrol show jobid=$SLURM_JOB_ID -dd > "${_DIR_}/$SLURM_JOB_ID.job"
fi
exit 0
Obviously it’s not at submission time but one could argue that it’s better as
an epilog seeing as users can use scontrol to modify the options that were
initially given to sbatch.
Ewan Roche
EPFL
On 27 avr. 2016, at 08:15, Hendryk Bockelmann
<[email protected]<mailto:[email protected]>> wrote:
Hi Gary,
we are using the slurm epilog to save data, which is located in
StateSaveLocation on the ControlMachine/ControlAddr (see slurm.conf) - this is
the batch script and the runtime environment.
Hendryk
On 27.04.2016 03:43, Skouson, Gary B wrote:
I'm interested in a way to save job submissions, including the job submission
script, and options passed to the sbatch command. I'd also like info like
current working directory, stderr and stdout. Is there an easy way to save
that info each job as jobs are submitted?
-----
Gary Skouson