Debian Codegraph @

tests/functional/spawn-on-demand/09-set-outputs/flow.cylc

raw
1 # Test that `cylc set` has the same effect as natural output
2 # completion: i.e. that downstream children are spawned as normal.
3
4 [scheduler]
5 [[events]]
6 abort on stall timeout = True
7 stall timeout = PT0S
8 inactivity timeout = PT30S
9 abort on inactivity timeout = True
10
11 [scheduling]
12 [[graph]]
13 R1 = """
14 foo & bar & setter
15
16 # Task scripting below ensures that foo is still in the pool, but
17 # bar is gone, when its outputs get set - just to make it clear
18 # the target task doesn't have to exist.
19
20 foo:out1? => qux
21 foo:out2? => quw
22
23 bar:out1? => fux
24 bar:out2? => fuw
25 """
26
27 [runtime]
28 [[foo, bar]]
29 # (Neglecting to complete my outputs naturally).
30 [[[outputs]]]
31 out1 = "file-1 done"
32 out2 = "file-2 done"
33 [[foo]]
34 # Hang about until setter is finished.
35 script = """
36 cylc__job__poll_grep_workflow_log -E "1/setter.* => succeeded"
37 """
38 [[bar]]
39 script = true
40 [[setter]]
41 # (To the rescue).
42 script = """
43 # Set foo outputs while it still exists in the pool.
44 cylc set --flow=2 --output=out1 --output=out2 "${CYLC_WORKFLOW_ID}//1/foo"
45
46 # Set bar outputs after it is gone from the pool.
47 cylc__job__poll_grep_workflow_log -E "1/bar.* completed"
48 cylc set --flow=2 --output=out1 --output=out2 "${CYLC_WORKFLOW_ID}//1/bar"
49 """
50 [[qux, quw, fux, fuw]]
51 script = true