LSF Version 7.3 - Platform LSF Configuration Reference
The number of times that pre-execution is retried includes queue-level, application-level, and
job-level pre-execution command specifications. When MAX_PREEXEC_RETRY is
configured, a job will be suspended when the sum of its queue-level pre-exec retry times +
application-level pre-exec retry times is greater than the value of MAX_PREEXEC_RETRY
or if the sum of its queue-level pre-exec retry times + job-level pre-exec retry times is greater
than the value of MAX_PREEXEC_RETRY.
The pre-execution retry limit is recovered when LSF is restarted and reconfigured. LSF replays
the pre-execution retry limit in the PRE_EXEC_START or JOB_STATUS events in
lsb.events.
Pre- and post-execution processing commands
Commands for submission
The bsub -E option specifies a pre-execution command. Post-execution commands cannot
be specified using bsub; post-execution processing can only be defined at the queue and
application levels.
The bsub -w option allows you to specify job dependencies that cause LSF to wait for
completion of post-execution processing before starting another job.
Command
Description
bsub -E command
•
Defines the pre-execution command at the job level.
bsub -w 'post_done(job_id | "job_name")'
•
Specifies the job dependency condition required to prevent
a new job from starting on a host until post-execution
processing on that host has finished without errors.
bsub -w 'post_err(job_id | "job_name")'
•
Specifies the job dependency condition required to prevent
a new job from starting on a host until post-execution
processing on that host has exited with errors.
Commands to monitor
Command
Description
bhist
bhist -l
•
Displays the host status of all hosts, specific hosts, or specific host groups, including the
POST_DONE and POST_ERR states, if the user submitted the job with the -w option of
bsub.
•
The CPU and run times shown do not include resource usage for post-execution processing
unless the parameter JOB_INCLUDE_POSTPROC is defined in lsb.applications.
•
Displays the job exit code and reason if the pre-exec retry limit is exceeded.
bjobs -l
•
Displays information about pending, running, and suspended jobs. During post-execution
processing, the job status will be RUN if the parameter JOB_INCLUDE_POSTPROC is
defined in lsb.applications.
•
The resource usage shown does not include resource usage for post-execution processing.
•
Displays the job exit code and reason if the pre-exec retry limit is exceeded.
Feature: Pre-execution and post-execution processing
44 Platform LSF Configuration Reference