| 1 |
# Abort on stall timeout unless we successfully remove some failed and waiting tasks. |
| 2 |
[scheduler] |
| 3 |
UTC mode = True |
| 4 |
cycle point format = %Y |
| 5 |
[[events]] |
| 6 |
stall timeout = PT30S |
| 7 |
abort on stall timeout = True |
| 8 |
expected task failures = 2020/bar, 2021/baz |
| 9 |
|
| 10 |
[scheduling] |
| 11 |
initial cycle point = 2020 |
| 12 |
final cycle point = 2021 |
| 13 |
[[graph]] |
| 14 |
R1 = remover |
| 15 |
P1Y = foo => bar & baz => waz |
| 16 |
|
| 17 |
[runtime] |
| 18 |
[[remover]] |
| 19 |
script = """ |
| 20 |
cylc__job__poll_grep_workflow_log -E '2020/bar/01.* failed' |
| 21 |
cylc__job__poll_grep_workflow_log -E '2021/baz/01.* failed' |
| 22 |
# Remove the two unhandled failed tasks. |
| 23 |
cylc remove "$CYLC_WORKFLOW_ID//*/ba*:failed" |
| 24 |
# Remove the two unsatisfied waiting tasks. |
| 25 |
cylc remove "$CYLC_WORKFLOW_ID//*/waz" |
| 26 |
# Exit so workflow can shut down. |
| 27 |
""" |
| 28 |
[[foo, waz]] |
| 29 |
script = true |
| 30 |
[[bar]] |
| 31 |
script = [[ $CYLC_TASK_CYCLE_POINT != 2020 ]] |
| 32 |
[[baz]] |
| 33 |
script = [[ $CYLC_TASK_CYCLE_POINT != 2021 ]] |