| 1 |
[scheduler] |
| 2 |
[[events]] |
| 3 |
stall timeout = PT0S |
| 4 |
abort on stall timeout = True |
| 5 |
[scheduling] |
| 6 |
cycling mode = integer |
| 7 |
runahead limit = P1 |
| 8 |
final cycle point = 3 |
| 9 |
[[graph]] |
| 10 |
P1 = foo[-P1] => foo |
| 11 |
[runtime] |
| 12 |
[[foo]] |
| 13 |
script = """ |
| 14 |
if (( CYLC_TASK_CYCLE_POINT == 3 )); then |
| 15 |
# Order a normal shutdown: no more job submissions, and shut |
| 16 |
# down after active jobs (i.e. this one) finish. |
| 17 |
cylc stop "$CYLC_WORKFLOW_ID" |
| 18 |
# Force-trigger 2/foo before shutdown. On restart it should be |
| 19 |
# in the waiting state with the force-triggered flag set. |
| 20 |
cylc trigger "${CYLC_WORKFLOW_ID}//2/foo" |
| 21 |
fi |
| 22 |
""" |