| 1 |
[meta] |
| 2 |
description = """ |
| 3 |
If the workflow runs slowly and the cycle time gets behind the real |
| 4 |
world (wallclock) time, then it will skip selected tasks until it |
| 5 |
catches up. |
| 6 |
|
| 7 |
In this case, the tasks "b", "c" and "d" will be skipped to help the |
| 8 |
workflow to catch up more quickly. |
| 9 |
|
| 10 |
When this workflow starts up, the first cycle will be at 00:00am today |
| 11 |
so the "start" task will immediately expire. This will cause tasks |
| 12 |
"b", "c" and "d" to be configured to "skip" rather than run. |
| 13 |
""" |
| 14 |
|
| 15 |
[scheduler] |
| 16 |
allow implicit tasks = True |
| 17 |
|
| 18 |
[scheduling] |
| 19 |
# start the workflow at 00:00am this morning |
| 20 |
initial cycle point = previous(T00) |
| 21 |
final cycle point = +P0D |
| 22 |
|
| 23 |
# the "start" task will "expire" if the cycle time falls behind |
| 24 |
# the wallclock time |
| 25 |
[[special tasks]] |
| 26 |
clock-expire = start |
| 27 |
|
| 28 |
[[graph]] |
| 29 |
P1D = """ |
| 30 |
# the chain of tasks we want to run |
| 31 |
start | start:expired? => a => b => c => d => housekeep |
| 32 |
""" |
| 33 |
|
| 34 |
[runtime] |
| 35 |
[[start]] |
| 36 |
# if this task expires, configure the tasks "b", "c" and "d" to |
| 37 |
# "skip" rather than run |
| 38 |
# Note: This task will also be "skipped" if it expires |
| 39 |
[[[events]]] |
| 40 |
expired handlers = cylc broadcast "%(workflow)s" -p "%(point)s" -n b -n c -n d -s "run mode = skip" |