Debian Codegraph @

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

raw
1 [meta]
2 title = Downstream Workflow
3 description = """
4 This workflow uses the data provided by the upstream workflow.
5 """
6
7 [scheduling]
8 # start two hours before the current hour
9 initial cycle point = previous(T-00) - PT2H
10 [[xtriggers]]
11 # this is an "xtrigger" - it will wait for the task "b" in the same
12 # cycle from the workflow "upstream"
13 upstream = workflow_state(workflow_task_id="inter-workflow-triggers/upstream//%(point)s/b")
14 [[graph]]
15 PT1H = """
16 @upstream => process
17 """
18
19 [runtime]
20 [[process]]
21 script = echo "The random number is: $(cat "$file")"
22 [[[environment]]]
23 # this is where the data should be written to in the upstream workflow
24 # Note: "runN" will point to the most recent run of a workflow
25 file = $HOME/cylc-run/upstream/runN/share/$CYLC_TASK_CYCLE_POINT