Requeue jobs in DONE state

About this task

Use brequeue to requeue a job array. When the job is requeued, it is assigned the PEND status and the job’s new position in the queue is after other jobs of the same priority.

Procedure

To requeue DONE jobs use the -d option of brequeue.

For example, the command brequeue -J "myarray[1-10]" -d 123 requeues jobs with job ID 123 and DONE status.

Note:

brequeue is not supported across clusters.

Requeue Jobs in EXIT state

Procedure

To requeue EXIT jobs use the -e option of brequeue.

For example, the command brequeue -J "myarray[1-10]" -e 123 requeues jobs with job ID 123 and EXIT status.

Requeue all jobs in an array regardless of job state

Procedure

A submitted job array can have jobs that have different job states. To requeue all the jobs in an array regardless of any job’s state, use the -a option of brequeue.

For example, the command brequeue -J "myarray[1-10]" -a 123 requeues all jobs in a job array with job ID 123 regardless of their job state.

Requeue RUN jobs to PSUSP state

Procedure

To requeue RUN jobs to PSUSP state, use the -H option of brequeue.

For example, the command brequeue -J "myarray[1-10]" -H 123 requeues to PSUSP RUN status jobs with job ID 123.

Requeue jobs in RUN state

Procedure

To requeue RUN jobs use the -r option of brequeue.

For example, the command brequeue -J "myarray[1-10]" -r 123 requeues jobs with job ID 123 and RUN status.