ICC Home Privacy and Legal Notice LC User Documents Banner

UCRL-WEB-201386

SLURM Reference Manual


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 file.
--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 file.
--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 briefly, because SRUN will kill it along with any descendent processes after a few seconds.



Navigation Links: [ Document List ] [ HPC Home ] [ Next ]