Debian Codegraph @

tests/f/flow-triggers/12-all-future-multi/flow.cylc

raw
1 # flow:1
2 # 1/a(running)
3 # flow:2
4 # 3/a(running)
5 # flow:1,2
6 # 5/a(running)
7 #
8 # Result:
9 # The task 5/a is triggered in both flows so joins the two.
10 #
11 # flow:1
12 # 1/a
13 # 2/a
14 # 3/a
15 # 4/a
16 # flow:2
17 # 3/a
18 # 4/a
19 # flow:1,2
20 # 5/a
21 # 6/a
22 # 7/a
23
24 [scheduler]
25 allow implicit tasks = True
26 [[events]]
27 abort on stall timeout = True
28 stall timeout = PT0S
29 abort on inactivity timeout = True
30 inactivity timeout = PT1M
31
32 [scheduling]
33 cycling mode = integer
34 initial cycle point = 1
35 final cycle point = 7
36 [[graph]]
37 P1 = a[-P1] => a
38
39 [runtime]
40 [[a]]
41 script = """
42 if ((
43 CYLC_TASK_CYCLE_POINT == 1
44 && CYLC_TASK_SUBMIT_NUMBER == 1
45 )); then
46 # trigger 3/a in a new flow
47 cylc trigger --flow=new ${CYLC_WORKFLOW_ID}//3/a
48 cylc__job__poll_grep_workflow_log -E '3/a.*=> running'
49 # trigger 5/a in all flows
50 cylc trigger ${CYLC_WORKFLOW_ID}//5/a
51 cylc__job__poll_grep_workflow_log -E '5/a.*=> running'
52 fi
53 """