Debian Codegraph @

tests/f/cylc-set/02-off-flow-out/flow.cylc

raw
1 # start a new flow after setting off-flow outputs 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 outputs of x_cold
27 cylc set --flow=new \
28 ${CYLC_WORKFLOW_ID}//1/a_cold \
29 ${CYLC_WORKFLOW_ID}//1/b_cold \
30 ${CYLC_WORKFLOW_ID}//1/c_cold
31 fi
32 """