| 1 |
# Designed to shutdown with a held task in the pool. |
| 2 |
[scheduler] |
| 3 |
UTC mode=True |
| 4 |
cycle point format = %Y |
| 5 |
[[events]] |
| 6 |
abort on stall timeout = True |
| 7 |
stall timeout = PT0S |
| 8 |
abort on inactivity timeout = True |
| 9 |
inactivity timeout = P1M |
| 10 |
[scheduling] |
| 11 |
initial cycle point = 2016 |
| 12 |
final cycle point = 2017 |
| 13 |
[[graph]] |
| 14 |
R1/2016 = t1 & fast => t2 |
| 15 |
R1/2017 = t1[2016] => t1 => t2 |
| 16 |
[runtime] |
| 17 |
[[t1]] |
| 18 |
script = """ |
| 19 |
if [[ "${CYLC_TASK_CYCLE_POINT}" == '2016' ]]; then |
| 20 |
cylc__job__poll_grep_workflow_log -E '2016/t2.* added to the n=0 window' |
| 21 |
cylc hold "${CYLC_WORKFLOW_ID}//" //2016/t2 //2017/t2 |
| 22 |
cylc stop "${CYLC_WORKFLOW_ID}" |
| 23 |
else |
| 24 |
cylc release "${CYLC_WORKFLOW_ID}//" //2016/t2 //2017/t2 |
| 25 |
fi |
| 26 |
""" |
| 27 |
[[fast]] |
| 28 |
script = true |
| 29 |
[[t2]] |
| 30 |
script = sleep 2 |