Debian Codegraph @

cylc/flow/etc/examples/3-datetime-cycling/flow.cylc

raw
1 [meta]
2 title = Datetime Cycling
3 description = """
4 A basic cycling workflow which runs the same set of tasks over
5 and over. Each cycle will be given a datetime identifier.
6
7 The task "a" will wait until the real-world (or wallclock) time passes
8 the cycle time.
9
10 Try changing the "initial cycle point" to "previous(00T00) - P1D" to
11 see how this works.
12 """
13
14 [scheduling]
15 # set the start of the graph to 00:00 this morning
16 initial cycle point = previous(T00)
17
18 [[graph]]
19 # repeat this with a "P"eriod of "1" "D"ay -> P1D
20 P1D = """
21 # this is the workflow we want to repeat:
22 a => b => c & d
23
24 # this is an "inter-cycle dependency", it makes the task "b"
25 # wait until its previous instance has successfully completed:
26 b[-P1D] => b
27
28 # this makes the task "a" wait until its cycle point matches
29 # the real world time - i.e. it prevents the workflow from getting
30 # ahead of the clock. If the workflow is running behind (e.g. after
31 # a delay, or from an earlier initial cycle point) it will catch
32 # until the clock-trigger constrains it again. To run entirely in
33 # "simulated time" remove this line:
34 @wall_clock => a
35 """
36
37 [runtime]
38 [[root]]
39 # all tasks will "inherit" the configuration in the "root" section
40 script = echo "Hello, I'm task $CYLC_TASK_NAME in cycle $CYLC_TASK_CYCLE_POINT!"
41 [[a]]
42 [[b]]
43 [[c]]
44 [[d]]