| 1 |
.. _text_based_def_day: |
| 2 |
|
| 3 |
day |
| 4 |
/// |
| 5 |
|
| 6 |
This defines a day dependency for a current node. The parameters are the |
| 7 |
names of weekdays (lowercase): **sunday, monday, tuesday, wednesday, |
| 8 |
thursday, friday** or **saturday** . Any combination is acceptable. |
| 9 |
Names must be typed in full and at least one must be given. Giving the |
| 10 |
same weekday more than once is not treated as an error. The names can be |
| 11 |
shortened as long as there is no ambiguity. |
| 12 |
|
| 13 |
There can be multiple day dependencies, but it is more convenient to |
| 14 |
define just one dependency, listing the weekdays the node is to run. |
| 15 |
|
| 16 |
Combined with a date, you can specify more particular dependencies such |
| 17 |
as the first Monday in a month: |
| 18 |
|
| 19 |
.. code-block:: shell |
| 20 |
|
| 21 |
task x |
| 22 |
date 1-7.*.* # This will not work |
| 23 |
day monday |
| 24 |
|
| 25 |
|
| 26 |
Will be listed by the show as |
| 27 |
|
| 28 |
.. code-block:: shell |
| 29 |
|
| 30 |
task x |
| 31 |
date 1.*.* |
| 32 |
date 2.*.* |
| 33 |
... |
| 34 |
date 7.*.* |
| 35 |
day monday |
| 36 |
|
| 37 |
Since the number of days in a month varies, there is no direct means to |
| 38 |
specify, say, every last Sunday of each month. A list of dates must be |
| 39 |
provided. If a hybrid clock is defined, any node held by a day |
| 40 |
dependency will be set to complete at the beginning of the suite, |
| 41 |
without the node ever being despatched. Otherwise the suite would never |
| 42 |
complete. |