Job dependencies

Users submitting jobs can indicate that grid-scheduler should wait before starting their job until a previous job or list of jobs has been successfully completed. If the proceeding job is an array job, grid-scheduler will wait until all array tasks have been completed. The following example may be used to submit a new job called my_job.sh that will run when the job with ID number 448 has been completed:

[alces-cluster@login1(awscluster) ~]$ qsub -q serial.q -hold 448 my_job.sh
Your job 512 ("my_job.sh") has been submitted

[alces-cluster@login1(awscluster) ~]$ qstat
job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID
----------------------------------------------------------------------------------------
    512 0.55500 my_job. user s        qw   03/29/2010 10:18:44    1