Skip to content
Snippets Groups Projects
Commit 5d41fa62 authored by Mark Grondona's avatar Mark Grondona
Browse files

o Re-map an argument of `0' to srun's -t, --time=minutes option to

   indicate an infinite timelimit.
parent 42d11e00
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,8 @@ minutes. If the job's time limit exceeds the partition's time limit, the
job will be left in a PENDING state. The default value is the partition's
time limit. When the time limit is reached, the job's processes are sent
SIGTERM followed by SIGKILL. The interval between signals is specified by
the SLURM configuration parameter \fBKillWait\fR.
the SLURM configuration parameter \fBKillWait\fR. A time limit of 0 minutes
indicates that an infinite timelimit should be used.
.TP
\fB\-D\fR, \fB\-\-chdir\fR=\fIpath\fR
have the remote processes do a chdir to \fIpath\fR before beginning
......
......@@ -1075,6 +1075,9 @@ static bool _opt_verify(void)
if (opt.max_wait)
opt.max_exit_timeout = opt.max_wait;
if (opt.time_limit == 0)
opt.time_limit = INFINITE;
return verified;
}
......
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