Restarting a Batch Job - Intergraph Batch Services - Help

Intergraph Batch Services Help

Language
English
Product
Intergraph Batch Services
Search by Category
Help

By default, when a batch job is submitted, it is flagged as "restartable." This means that if for some reason the job does not execute on the first attempt (for example, the queue is aborted), the job will be resubmitted to the queue and will re-execute.

Using Batch Manager:

  1. Select the job.

  2. Select Job > Properties.

    Batch Manager displays the Job Properties Dialog Box.

  3. Select the General tab. If the Restartable flag is checked, the job is restartable. As long as the job has not started executing, you may change this value by clicking the Restartable box.

  4. Click OK.

Using the command line:

By default, jobs are restartable when submitted, unless you specify the -nr option when qsub is used to submit the job.

Using the Batch API:

  1. Use the BatchGetJobInfo function to obtain the BATCH_JOB_INFO_2 structure for the job.

  2. To set the restartable flag, set the BATCH_JOB_INFO_2.restartable value to 1. To turn off the restartable flag, set the value to 0.

  3. Use the BatchSetJobInfo function with the BATCH_JOB_INFO_2 structure to change the restartable value.