Create a job submission script

Create a job submission script with the bsub command and environment variables that represent the job name and job array index.

About this task

LSF Process Manager can successfully track the jobs and job arrays that are submitted through customized scripts only if these conditions are met:

Procedure

  1. Specify the job name (JS_JOB_NAME environment variable) and job array index (JS_INDEX_LIST environment variable) in the job or job array submission script.

    For example,

    bsub -q short -R "mem>1000" -J $JS_JOB_NAME$JS_INDEX_LIST my_command

  2. Submit only one job or job array through the job or job array submission script.
  3. Do not use the following bsub options in the script:
    • -I/-Ip/-Is: Interactive jobs.
    • -K: Submit a job and wait for the job to complete.
  4. The script must exit zero upon successful submission, or non-zero otherwise.