Debian Codegraph @

tests/f/restart/50-two-flows/flow.cylc

raw
1 # A workflow that triggers a new flow in the graph and then shuts down
2 # so that we can restart with two active flows present.
3
4 [scheduler]
5 [[events]]
6 inactivity timeout = PT1M
7 abort on inactivity timeout = True
8 [scheduling]
9 [[graph]]
10 R1 = "a => b => c => d"
11 [runtime]
12 [[root]]
13 pre-script = sleep 2
14 [[a]]
15 script = """
16 if ((CYLC_TASK_FLOW_NUMBERS == 2)); then
17 cylc__job__poll_grep_workflow_log -E "/c.* succeeded"
18 fi
19 """
20 [[b, d]]
21 [[c]]
22 script = """
23 if ((CYLC_TASK_FLOW_NUMBERS == 1)); then
24 cylc trigger --flow=new --meta="cheese wizard" \
25 "$CYLC_WORKFLOW_ID//1/a"
26 cylc__job__poll_grep_workflow_log -E "\[1/a/02\(flows=2\):submitted\] => running"
27 cylc stop $CYLC_WORKFLOW_ID
28 fi
29 """