Debian Codegraph @

tests/functional/cylc-set/01-off-flow-pre/flow.cylc

raw
1 # start a new flow after setting off-flow prerequites to avoid stall.
2
3 [scheduler]
4 [[events]]
5 stall timeout = PT0S
6 abort on stall timeout = True
7 inactivity timeout = PT30S
8 abort on inactivity timeout = True
9
10 [scheduling]
11 [[graph]]
12 R1 = """
13 # the tasks we want the flow to run
14 a => b => c => reflow
15 # the off-flow prerequisites
16 a_cold => a
17 b_cold => b
18 c_cold => c
19 """
20 [runtime]
21 [[a, b, c]]
22 [[a_cold, b_cold, c_cold]]
23 [[reflow]]
24 script = """
25 if (( CYLC_TASK_SUBMIT_NUMBER == 1 )); then
26 # set off-flow prerequisites (and trigger 1/a)
27 cylc set --flow=new \
28 --pre=1/a_cold:succeeded \
29 --pre=1/b_cold:succeeded \
30 --pre=1/c_cold:succeeded \
31 ${CYLC_WORKFLOW_ID}//1/a \
32 ${CYLC_WORKFLOW_ID}//1/b \
33 ${CYLC_WORKFLOW_ID}//1/c
34 fi
35 """