| 1 |
.. _dependencies: |
| 2 |
|
| 3 |
Dependencies |
| 4 |
//////////// |
| 5 |
|
| 6 |
The following section describes commands that are used to create |
| 7 |
dependencies between nodes in a suite. |
| 8 |
|
| 9 |
A node can be made dependent in following ways: time/date, other |
| 10 |
node(s) or limited from running by some resource. There can be |
| 11 |
multiple time dependencies which may be expressed using the time of |
| 12 |
day, the day of the week, or the date. A node dependency is expressed |
| 13 |
as a logical statement about another node and its state, like |
| 14 |
**taskname == complete** . A dependency may involve several other |
| 15 |
nodes, preferably all in the same suite. A node that is dependent |
| 16 |
cannot be started as long as some dependency is **holding** it. For |
| 17 |
triggers, the phrase **trigger is set** means a trigger has |
| 18 |
**expired** , and **trigger is not set** means it is still |
| 19 |
**holding**. By default, a node depends on its parent. So, for |
| 20 |
example, a task cannot start if the family to which it belongs is |
| 21 |
still waiting on a dependency. |
| 22 |
|
| 23 |
A node can have many time dependencies, but only one, albeit complex, |
| 24 |
trigger. When a suite begins, the trigger and all the time |
| 25 |
dependencies hold the node. The node stays queued as long as the |
| 26 |
trigger is not set. Only one of the dependency types (time, date or |
| 27 |
day, and trigger) can **expire** at a time, the others still remain |
| 28 |
holding or in use. If the trigger is set, one of the possible time |
| 29 |
dependencies may expire and let the node go. When the node completes, |
| 30 |
the expired time dependency is marked as being used, and the other |
| 31 |
two time dependencies are processed. |
| 32 |
|
| 33 |
The node can be dependent because: |
| 34 |
|
| 35 |
- Server is halted or shutdown |
| 36 |
- Its parent is dependent |
| 37 |
- It is triggered by a state of another node |
| 38 |
- It is waiting for time of day |
| 39 |
- It is waiting for date of year |
| 40 |
- It is waiting for day of a week |
| 41 |
- Limit it uses does not have a free token |
| 42 |
- It is migrated (restored at begin) |
| 43 |
- It is suspended |
| 44 |
|
| 45 |
The following sections discuss the different dependency types, and give |
| 46 |
examples of how to use them together. |
| 47 |
|
| 48 |
.. toctree:: |
| 49 |
:maxdepth: 1 |
| 50 |
|
| 51 |
trigger |
| 52 |
date |
| 53 |
day |
| 54 |
time |
| 55 |
today |
| 56 |
cron/index |
| 57 |
using_dependencies_together |