Skip to content
Snippets Groups Projects
Commit d99a5298 authored by Moe Jette's avatar Moe Jette
Browse files

Define task prolog/epilog execution order

parent 89a2a1b1
No related branches found
No related tags found
No related merge requests found
...@@ -430,13 +430,13 @@ into this directory. ...@@ -430,13 +430,13 @@ into this directory.
Fully qualified pathname of an executable to be run by \fBsrun\fR following the Fully qualified pathname of an executable to be run by \fBsrun\fR following the
completion of a job step. The command line arguments for the executable will completion of a job step. The command line arguments for the executable will
be the command and arguments of the job step. This configuration parameter be the command and arguments of the job step. This configuration parameter
may be overridden by \fBsrun\fR\'s \fB--epilog\fR parameter. may be overridden by \fBsrun\fR\'s \fB\-\-epilog\fR parameter.
.TP .TP
\fBSrunProlog\fR \fBSrunProlog\fR
Fully qualified pathname of an executable to be run by \fBsrun\fR prior to the Fully qualified pathname of an executable to be run by \fBsrun\fR prior to the
launch of a job step. The command line arguments for the executable will launch of a job step. The command line arguments for the executable will
be the command and arguments of the job step. This configuration parameter be the command and arguments of the job step. This configuration parameter
may be overridden by \fBsrun\fR\'s \fB--prolog\fR parameter. may be overridden by \fBsrun\fR\'s \fB\-\-prolog\fR parameter.
.TP .TP
\fBSwitchType\fR \fBSwitchType\fR
Identifies the type of switch or interconnect used for application Identifies the type of switch or interconnect used for application
...@@ -452,8 +452,9 @@ If running jobs exist at the time \fBslurmctld\fR is restarted with a new ...@@ -452,8 +452,9 @@ If running jobs exist at the time \fBslurmctld\fR is restarted with a new
value of \fBSwitchType\fR, records of all jobs in any state may be lost. value of \fBSwitchType\fR, records of all jobs in any state may be lost.
.TP .TP
\fBTaskEpilog\fR \fBTaskEpilog\fR
Fully qualified pathname of a program to be execute as user root after Fully qualified pathname of a program to be execute as the slurm job's
termination of each task. owner after termination of each task.
See \fBTaskPlugin\fR for execution order details.
.TP .TP
\fBTaskPlugin\fR \fBTaskPlugin\fR
Identifies the type of task launch plugin, typically used to provide Identifies the type of task launch plugin, typically used to provide
...@@ -462,10 +463,32 @@ processors). ...@@ -462,10 +463,32 @@ processors).
Acceptable values include Acceptable values include
"task/none" for systems requiring no special handling. "task/none" for systems requiring no special handling.
The default value is "task/none". The default value is "task/none".
The order of task prolog/epilog execution is as follows:
.RS
.TP
\fB1. pre_launch()\fR: function in TaskPlugin
.TP
\fB2. TaskProlog\fR: system\-wide per task program defined in slurm.conf
.TP
\fB3. user prolog\fR: job step specific task program defined using
\fBsrun\fR's \fB\-\-task\-prolog\fR option or \fBSLURM_TASK_PROLOG\fR
environment variable
.TP
\fB4.\fR Execute the job step's task
.TP
\fB5. user epilog\fR: job step specific task program defined using
\fBsrun\fR's \fB\-\-task\-epilog\fR option or \fBSLURM_TASK_EPILOG\fR
environment variable
.TP
\fB6. TaskEpilog\fR: system\-wide per task program defined in slurm.conf
.TP
\fB7. post_term()\fR: function in TaskPlugin
.RE
.TP .TP
\fBTaskProlog\fR \fBTaskProlog\fR
Fully qualified pathname of a program to be execute as user root prior to Fully qualified pathname of a program to be execute as the slurm job's
initiation of each task. owner prior to initiation of each task.
See \fBTaskPlugin\fR for execution order details.
.TP .TP
\fBTmpFS\fR \fBTmpFS\fR
Fully qualified pathname of the file system available to user jobs for Fully qualified pathname of the file system available to user jobs for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment