Debian Codegraph @

cylc/flow/etc/examples/expiry/two/flow.cylc

raw
1 [meta]
2 description = """
3 If the workflow runs slowly and the cycle time gets behind the real
4 world (wallclock) time, then it will skip tasks until it catches up.
5
6 A cycle may be skipped part way through to allow the workflow to catch
7 up faster.
8
9 When this workflow starts up, the first cycle will be one minute ahead
10 of the wallclock time. At some point in the cycle, the wallclock time
11 will overtake the cycle time and the next task in the chain will
12 expire. The workflow will then move onto the next cycle.
13 """
14
15 [scheduler]
16 allow implicit tasks = True
17
18 [scheduling]
19 # start the workflow at 00:00am this morning
20 initial cycle point = PT1M
21
22 # any task in the workflow will "expire" rather than run if the cycle
23 # time falls behind the wallclock time
24 [[special tasks]]
25 clock-expire = start, a, b, c, d, housekeep
26
27 [[graph]]
28 P1D = """
29 # the chain of tasks we want to run
30 start => a => b => c => d => housekeep
31
32 # start the next cycle as soon as the previous cycle has finished
33 # OR and task in the previous cycle has expired
34 housekeep[-P1D]
35 | start[-P1D]:expire?
36 | a[-P1D]:expired?
37 | b[-P1D]:expired?
38 | c[-P1D]:expired?
39 | d[-P1D]:expired?
40 | housekeep[-P1D]:expired?
41 => start
42 """
43
44 [runtime]
45 [[root]]
46 script = sleep 12