SLURM Reference Manual for HP XC System Software

Prolog and Epilog Options
These SRUN options let you supplement your basic job with programs that precede or follow it.
--prolog=executable
causes SRUN to run executable just before launching a job step (if NONE, the default
executable, then no prolog is run). This option overrides the SrunProlog parameter
in the slurm.conf le.
--epilog=executable
causes SRUN to run executable just after a job step completes (if NONE, the default
executable, then no epilog is run). This option overrides the SrunEpilog parameter in
the slurm.conf le.
--task-prolog=executable
causes the SLURMD daemon to run executable just before launching each task but
after any TaskProlog parameter in slurm.conf is run. This task-prolog program has
the normal environment variables available plus SLURM_TASK_PID (to reveal the
task's process ID), and standard output from this program can be used to set
environment variables for the task being launched.
--task-epilog=executable
causes the SLURMD daemon to run executable just after each task terminates but
before any TaskEpilog parameter in slurm.conf is run. The task-epilog program should
run only briey, because SRUN will kill it along with any descendent processes after
a few seconds.
SLURM Reference Manual - 31