By default, basic single step job dependencies are supported
through completed/failed step evaluation. Basic dependency support does
not require special configuration and is activated by default. Dependent
jobs are only supported through a resource manager and therefore submission
methods depend upon the specific resource manager being used. For TORQUE's qsub
and the Moab msub command, the semantics listed
in the section below can be used with the -W x=depend:<STRING>
flag. For other resource managers, consult the resource manager specific
documentation.
NOTE: Situations can arise where idle job limits are set and the dependee is blocked out. To avoid this, use the BLOCKLIST DEPEND parameter.
11.5.1.1 Job Dependency Syntax
Dependency
Format
Description
after
after:<jobid>[:<jobid>]...
Job may start at any time after specified jobs have started execution.
afterany
afterany:<jobid>[:<jobid>]...
Job may start at any time after all specified jobs have completed regardless of completion status.
afterok
afterok:<jobid>[:<jobid>]...
Job may be start at any time after all specified jobs have successfully completed.
afternotok
afternotok:<jobid>[:<jobid>]...
Job may start at any time after any specified jobs have completed unsuccessfully.
before
before:<jobid>[:<jobid>]...
Job may start at any time before specified jobs have started execution.
beforeany
beforeany:<jobid>[:<jobid>]...
Job may start at any time before all specified jobs have completed regardless of completion status.
beforeok
beforeok:<jobid>[:<jobid>]...
Job may start at any time before all specified jobs have successfully completed.
beforenotok
beforenotok:<jobid>[:<jobid>]...
Job may start at any time before any specified jobs have completed unsuccessfully.
on
on:<count>
Job may start after <count> dependencies on other jobs have been satisfied.
synccount
synccount:<count>
Job must start at the same time as <count> other jobs that reference this job using the syncwith keyword.
syncwith
syncwith:<jobid>
Job must start at the same time as <jobid>.
11.5.2 Task Scheduling of Directed-Acyclical Graphs (DAGs)
Moab 5.1.0 and later supports task scheduling, which is is enabled using the advanced DAG syntax.
11.5.3 Task Dependency (DAG) Configuration Example