Debian Codegraph @

tests/f/clock-trigger-inexact/00-big-offset/flow.cylc

raw
1 #!Jinja2
2
3 # Test clock-trigger offset involving inexact intervals (months and years),
4 # which requires adding the offset to the cycle point before conversion to
5 # absolute seconds. Initial cycle point is next minute minus P1Y7M, with
6 # opposite clock-offset to get real time triggering once per minute.
7
8 {% set OFFSET = "P1Y7M" %}
9
10 [scheduler]
11 [[events]]
12 # May take up to 60 secs to finish, allow some extra time.
13 inactivity timeout = PT80S
14 abort on inactivity timeout = True
15 [scheduling]
16 initial cycle point = next(T--00) - {{OFFSET}} # next minute - P1Y7M
17 final cycle point = +P0Y
18 [[xtriggers]]
19 clock1 = wall_clock({{OFFSET}}) # xtrigger with arg
20 clock2 = wall_clock(offset={{OFFSET}}) # xtrigger with kwarg
21 [[special tasks]]
22 clock-trigger = baz({{OFFSET}}) # old-style clock-triggered task
23 [[graph]]
24 PT1M = """
25 # These should all trigger at once, at the first minute boundary
26 # after start-up
27 @clock1 => foo
28 @clock2 => bar
29 baz
30 """
31 [runtime]
32 [[foo, bar, baz]]