LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 585
Configuring Job Controls
Windows job control actions
On Windows, actions equivalent to the UNIX signals have been implemented to do
the default job control actions. Job control messages replace the SIGINT and
SIGTERM signals, but only customized applications will be able to process them.
Termination is implemented by the
TerminateProcess() system call.
See Platform LSF Programmer’s Guide for more information about LSF signal
handling on Windows.
Configuring Job Control Actions
Several situations may require overriding or augmenting the default actions for job
control. For example:
◆ Notifying users when their jobs are suspended, resumed, or terminated
◆ An application holds resources (for example, licenses) that are not freed by
suspending the job. The administrator can set up an action to be performed
that causes the license to be released before the job is suspended and
re-acquired when the job is resumed.
◆ The administrator wants the job checkpointed before being:
❖ Suspended when a run window closes
❖ Killed when the RUNLIMIT is reached
◆ A distributed parallel application must receive a catchable signal when the job
is suspended, resumed or terminated to propagate the signal to remote
processes.
To override the default actions for the SUSPEND, RESUME, and TERMINATE job
controls, specify the JOB_CONTROLS parameter in the queue definition in
lsb.queues.
See the Platform LSF Configuration Reference for information about the
lsb.queues file.
JOB_CONTROLS parameter (lsb.queues)
The JOB_CONTROLS parameter has the following format:
Begin Queue
...
JOB_CONTROLS = SUSPEND[signal | CHKPNT | command]\
RESUME[signal | command]\
TERMINATE[signal | CHKPNT | command]
...
End Queue
When LSF needs to suspend, resume, or terminate a job, it invokes one of the
following actions as specified by SUSPEND, RESUME, and TERMINATE.
signal A UNIX signal name (for example, SIGTSTP or SIGTERM). The specified signal is
sent to the job.
The same set of signals is not supported on all UNIX systems. To display a list of the
symbolic names of the signals (without the SIG prefix) supported on your system,
use the
kill -l command.