Job Dependencies

PBS job dependencies allow users to set execution order for their queued jobs to run.  Dependencies are set with the -W option using the syntax:

-W depend=<dependency type>:<JobID list>

PBS places the jobs in Hold state until they are eligible to run.

<dependency type> can be after, afterok, afternotok, or afterany. There are also options that request a job to run before a certain job. <JobID list> is a list of jobID's seperated by colons. For more information, please reference the qsub man page.

Job dependencies can be specifiled in the PBS script using ``#PBS -W depend= ...'', or at the command line using ``qsub -W depend= ... yourPBSjobScript''. The file yourPBSjobScript may contain lines as follows:

#PBS -q normal
#PBS -l walltime=00:30:00
#PBS -l nodes=2:ppn=32
#PBS -N my_job_name
#PBS -j oe
#PBS -W depend=afterany:<JobID>