SLURM Reference Manual for HP XC System Software
Table Of Contents
- Preface
- Introduction
- SLURM Goals and Roles
- SLURM Features
- SLURM Operation
- SLURM Utilities
- SRUN (Submit Jobs)
- SQUEUE (List Jobs)
- SINFO (List Nodes)
- SMAP (Show Job Geometry)
- SCONTROL (Manage Configurations)
- Disclaimer
- Keyword Index
- Alphabetical List of Keywords
- Date and Revisions
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.
SLURM Reference Manual - 31