LSF Version 7.3 - Platform LSF Configuration Reference
For example, if the job run limit is 60 minutes and NO_PREEMPT_RUN_TIME=50%, the
job cannot be preempted after it running 30 minutes or longer.
Requires a run time (bsub -We or RUNTIME in lsb.applications), or run limit to be
specified for the job (bsub -W, or RUNLIMIT in lsb.queues, or RUNLIMIT in
lsb.applications)
POST_EXEC
Syntax
POST_EXEC=command
Description
Enables post-execution processing at the application level. The POST_EXEC command runs
on the execution host after the job finishes. Post-execution commands can be configured at
the job, application, and queue levels.
If both application-level (POST_EXEC in lsb.applications) and job-level post-execution
commands are specified, job level post-execution overrides application-level post-execution
commands. Queue-level post-execution commands (POST_EXEC in lsb.queues) run after
application-level post-execution and job-level post-execution commands.
The POST_EXEC command uses the same environment variable values as the job, and runs
under the user account of the user who submits the job. To run post-execution commands
under a different user account (such as root for privileged operations), configure the parameter
LSB_PRE_POST_EXEC_USER in lsf.sudoers.
When a job exits with one of the application profile’s REQUEUE_EXIT_VALUES, LSF
requeues the job and sets the environment variable LSB_JOBPEND. The post-execution
command runs after the requeued job finishes.
When the post-execution command is run, the environment variable LSB_JOBEXIT_STAT
is set to the exit status of the job. If the execution environment for the job cannot be set up,
LSB_JOBEXIT_STAT is set to 0 (zero).
For UNIX:
•
The pre- and post-execution commands run in the /tmp directory under /bin/sh -c,
which allows the use of shell features in the commands. The following example shows valid
configuration lines:
PRE_EXEC= /usr/share/lsf/misc/testq_pre >> /tmp/pre.out
POST_EXEC= /usr/share/lsf/misc/testq_post | grep -v "Hey!"
•
LSF sets the PATH environment variable to
PATH='/bin /usr/bin /sbin /usr/sbin'
•
The stdin, stdout, and stderr are set to /dev/null
•
To allow UNIX users to define their own post-execution commands, an LSF administrator
specifies the environment variable $USER_POSTEXEC as the POST_EXEC command. A
user then defines the post-execution command:
setenv USER_POSTEXEC /path_name
Note:
The path name for the post-execution command must be an
absolute path. Do not define POST_EXEC=
lsb.applications
174 Platform LSF Configuration Reference