Platform LSF Reference Version 6.2

lsb.queues Structure
Platform LSF Reference
418
When the post-execution command is run, the environment variable
LSB_JOBEXIT_STAT is set to the exit status of the job. Refer to the manual page
for
wait(2) for the format of this exit status.
The post-execution command is also run if a job is requeued because the job’s
execution environment fails to be set up or if the job exits with one of the queue’s
REQUEUE_EXIT_VALUES. The environment variable LSB_JOBPEND is set if
the job is requeued. If the job’s execution environment could not be set up,
LSB_JOBEXIT_STAT is set to 0 (zero).
Default
No post-execution commands
PRE_EXEC
Syntax
PRE_EXEC=
command
Description
A command run on the execution host before the job.
To specify a pre-execution command at the job level, use
bsub -E. If both queue and
job level pre-execution commands are specified, the job level pre-execution is run after
the queue level pre-execution command.
If the pre-execution command exits with a non-zero exit code, it is considered to have
failed, and the job is requeued to the head of the queue. This feature can be used to
implement customized scheduling by having the pre-execution command fail if
conditions for dispatching the job are not met.
Other environment variables set for the job are also set for the pre- and post-execution
commands.
UNIX
The entire contents of the configuration line of the pre- and post-execution commands
are run under
/bin/sh -c, so shell features can be used in the command.
The pre- and post-execution commands are run in
/tmp.
Standard input and standard output and error are set to:
/dev/null
The output from the pre- and post-execution commands can be explicitly redirected to
a file for debugging purposes.
The PATH environment variable is set to:
/bin /usr/bin /sbin/usr/sbin
Windows
The pre- and post-execution commands are run under cmd.exe/c.
To run these commands under a different user account (such as root, to do privileged
operations, if necessary), configure the parameter LSB_PRE_POST_EXEC_USER in
lsf.sudoers.
Standard input and standard output and error are set to NUL. The output from the pre-
and post-execution commands can be explicitly redirected to a file for debugging
purposes.
The PATH is determined by the setup of the LSF Service.
Default
No pre-execution commands
PREEMPTION
Syntax
PREEMPTION=PREEMPTIVE[[queue_name[+pref_level]...]]
PREEMPTABLE[[queue_name...]]