| 1 |
# Set outputs of inactive task to direct the flow at an optional branch point. |
| 2 |
|
| 3 |
[scheduler] |
| 4 |
[[events]] |
| 5 |
inactivity timeout = PT1M |
| 6 |
abort on inactivity timeout = True |
| 7 |
stall timeout = PT0S |
| 8 |
abort on stall timeout = True |
| 9 |
|
| 10 |
[scheduling] |
| 11 |
[[graph]] |
| 12 |
R1 = """ |
| 13 |
switcher => foo |
| 14 |
foo:a? => a |
| 15 |
foo:b? => b |
| 16 |
""" |
| 17 |
[runtime] |
| 18 |
[[switcher]] |
| 19 |
script = """ |
| 20 |
cylc set --output=a,succeeded --wait ${CYLC_WORKFLOW_ID}//1/foo |
| 21 |
# wait for command actioned, to avoid race condition |
| 22 |
cylc__job__poll_grep_workflow_log "actioned" |
| 23 |
""" |
| 24 |
[[foo]] |
| 25 |
script = "cylc message b" # always go b-way if I run |
| 26 |
[[[outputs]]] |
| 27 |
a = a |
| 28 |
b = b |
| 29 |
[[a]] |
| 30 |
[[b]] |
| 31 |
script = false |