| 1 |
[scheduler] |
| 2 |
[[events]] |
| 3 |
expected task failures = 1/t1 |
| 4 |
|
| 5 |
[scheduling] |
| 6 |
[[graph]] |
| 7 |
R1 = """t1:start => t2""" |
| 8 |
|
| 9 |
[runtime] |
| 10 |
[[t1]] |
| 11 |
script = """ |
| 12 |
cylc__job__wait_cylc_message_started |
| 13 |
set +e |
| 14 |
trap '' SIGKILL |
| 15 |
kill -s SIGKILL $$ |
| 16 |
sleep 5 # Prevent the script to run to success before it is killed |
| 17 |
""" |
| 18 |
[[[events]]] |
| 19 |
failed handlers = echo |
| 20 |
[[t2]] |
| 21 |
script = """ |
| 22 |
cylc kill "${CYLC_WORKFLOW_ID}//*/t1" |
| 23 |
sleep 1 |
| 24 |
cylc poll "${CYLC_WORKFLOW_ID}//*/t1" |
| 25 |
sleep 1 |
| 26 |
cylc shutdown "${CYLC_WORKFLOW_ID}" |
| 27 |
""" |
| 28 |
[[[job]]] |
| 29 |
execution time limit = PT1M |