Debian Codegraph @

cylc/flow/etc/examples/inter-workflow-triggers/upstream/flow.cylc

raw
1 [meta]
2 title = Upstream Workflow
3 description = """
4 This is the workflow which is providing the data that the downstream
5 workflow wants to use.
6 """
7
8 [scheduling]
9 # start two hours before the current time on the whole hour
10 initial cycle point = previous(T-00) - PT2H
11 [[graph]]
12 PT1H = """
13 # wait for the "real world" time before running "a":
14 @wall_clock => a
15
16 # then run task "b"
17 a => b
18 """
19
20 [runtime]
21 [[a]]
22 [[b]]
23 # write a random number to ~/cylc-run/<workflow-id>/share/<cycle>
24 # for the downstream workflow to use
25 script = echo "$RANDOM" > "$file"
26 [[[environment]]]
27 file = ${CYLC_WORKFLOW_SHARE_DIR}/${CYLC_TASK_CYCLE_POINT}