| 1 |
# a:x? => b => c |
| 2 |
# a:y? => d => e |
| 3 |
# |
| 4 |
# Start with the "x" pathway completed and re-trigger "a". |
| 5 |
# The second run of "a" yields the output "y". |
| 6 |
# |
| 7 |
# flow:1 |
| 8 |
# a(succeeded:x) |
| 9 |
# b(succeeded) |
| 10 |
# c(succeeded) |
| 11 |
# flow:<new> |
| 12 |
# a(running) |
| 13 |
# |
| 14 |
# by: |
| 15 |
# cylc trigger --flow=none a |
| 16 |
# |
| 17 |
# Result: |
| 18 |
# Task "a" is re-run as a no-flow; so the other branch does not get run. |
| 19 |
# |
| 20 |
# flow:1 |
| 21 |
# a#1 (the naturally triggered run) |
| 22 |
# b |
| 23 |
# c |
| 24 |
# flow:none |
| 25 |
# a#2 (the manually triggered run) |
| 26 |
|
| 27 |
[scheduler] |
| 28 |
allow implicit tasks = True |
| 29 |
[[events]] |
| 30 |
abort on stall timeout = True |
| 31 |
stall timeout = PT0S |
| 32 |
abort on inactivity timeout = True |
| 33 |
inactivity timeout = PT1M |
| 34 |
|
| 35 |
[scheduling] |
| 36 |
[[graph]] |
| 37 |
R1 = """ |
| 38 |
a:x? => b => c |
| 39 |
a:y? => d => e |
| 40 |
""" |
| 41 |
[runtime] |
| 42 |
[[a]] |
| 43 |
script = """ |
| 44 |
if (( CYLC_TASK_SUBMIT_NUMBER == 1 )); then |
| 45 |
cylc message x |
| 46 |
else |
| 47 |
cylc message y |
| 48 |
fi |
| 49 |
""" |
| 50 |
[[[outputs]]] |
| 51 |
x = x |
| 52 |
y = y |
| 53 |
[[c]] |
| 54 |
script = """ |
| 55 |
cylc trigger --flow=none ${CYLC_WORKFLOW_ID}//1/a |
| 56 |
cylc__job__poll_grep_workflow_log -E '1/a/02\(flows=none\):submitted.*started' |
| 57 |
""" |