Debian Codegraph @

tests/functional/spawn-on-demand/13-trigger-runahead/flow.cylc

raw
1 # This workflow should behave the same as if foo.1 did not trigger foo.2.
2
3 [scheduling]
4 cycling mode = integer
5 initial cycle point = 1
6 final cycle point = 3
7 runahead limit = P0
8 [[graph]]
9 P1 = foo
10 [runtime]
11 [[foo]]
12 script = """
13 cylc__job__wait_cylc_message_started
14 if ((CYLC_TASK_CYCLE_POINT == 1)); then
15 expected="foo, 1, running, not-held, not-queued, not-runahead
16 foo, 2, waiting, not-held, not-queued, runahead"
17 diff <(cylc dump -l -t "${CYLC_WORKFLOW_ID}") <(echo "$expected")
18 # Force trigger next instance while it is runahead limited.
19 cylc trigger $CYLC_WORKFLOW_ID//2/foo
20 fi
21 """