| 1 |
# flow:1 |
| 2 |
# a(succeeded) |
| 3 |
# b(succeeded) |
| 4 |
# c(running) |
| 5 |
# flow:<new> |
| 6 |
# a(running) |
| 7 |
# |
| 8 |
# by: |
| 9 |
# cylc trigger --flow=new a |
| 10 |
# |
| 11 |
# Result: |
| 12 |
# A new flow is started which overruns the previous flow. |
| 13 |
# |
| 14 |
# flow:1 |
| 15 |
# a |
| 16 |
# b |
| 17 |
# c |
| 18 |
# d |
| 19 |
# flow: 2 |
| 20 |
# a |
| 21 |
# b |
| 22 |
# c |
| 23 |
# d |
| 24 |
|
| 25 |
[scheduler] |
| 26 |
allow implicit tasks = True |
| 27 |
[[events]] |
| 28 |
abort on stall timeout = True |
| 29 |
stall timeout = PT0S |
| 30 |
abort on inactivity timeout = True |
| 31 |
inactivity timeout = PT1M |
| 32 |
[scheduling] |
| 33 |
[[graph]] |
| 34 |
R1 = "a => b => c => d" |
| 35 |
[runtime] |
| 36 |
[[d]] |
| 37 |
script = """ |
| 38 |
if (( $CYLC_TASK_SUBMIT_NUMBER == 1 )); then |
| 39 |
cylc trigger --flow=new ${CYLC_WORKFLOW_ID}//1/a |
| 40 |
cylc__job__poll_grep_workflow_log -E '1/a/02\(flows=2\):submitted.*started' |
| 41 |
fi |
| 42 |
""" |