| 1 |
#!Jinja2 |
| 2 |
|
| 3 |
{# alt-cylc-run-dir default for easy validation #} |
| 4 |
{% set ALT = ALT | default("alt") %} |
| 5 |
|
| 6 |
[scheduling] |
| 7 |
cycling mode = integer |
| 8 |
initial cycle point = 1 |
| 9 |
final cycle point = 2 |
| 10 |
[[xtriggers]] |
| 11 |
# Cylc 7 back compat |
| 12 |
z1 = suite_state(c7, foo, 1, offset=P0, cylc_run_dir={{ALT}}):PT1S # status=succeeded |
| 13 |
z2 = suite_state(c7, foo, 1, offset=P0, message="the quick brown", cylc_run_dir={{ALT}}):PT1S |
| 14 |
|
| 15 |
# Cylc 7 xtrigger, Cylc 8 DB |
| 16 |
a1 = suite_state(c8b, foo, 1, offset=P0, cylc_run_dir={{ALT}}):PT1S # status=succeeded |
| 17 |
a2 = suite_state(c8b, foo, 1, offset=P0, message="the quick brown", cylc_run_dir={{ALT}}):PT1S |
| 18 |
|
| 19 |
# Cylc 8 back compat (pre-8.3.0) |
| 20 |
b1 = workflow_state(c8a, foo, 1, offset=P0, status=succeeded, cylc_run_dir={{ALT}}):PT1S |
| 21 |
b2 = workflow_state(c8a, foo, 1, offset=P0, message="the quick brown", cylc_run_dir={{ALT}}):PT1S |
| 22 |
|
| 23 |
# Cylc 8 new (from 8.3.0) |
| 24 |
c1 = workflow_state(c8b//1/foo, offset=P0, alt_cylc_run_dir={{ALT}}):PT1S |
| 25 |
c2 = workflow_state(c8b//1/foo:succeeded, offset=P0, alt_cylc_run_dir={{ALT}}):PT1S |
| 26 |
c3 = workflow_state(c8b//1/foo:x, offset=P0, alt_cylc_run_dir={{ALT}}, is_trigger=True):PT1S |
| 27 |
c4 = workflow_state(c8b//1/foo:"the quick brown", offset=P0, is_message=True, alt_cylc_run_dir={{ALT}}):PT1S |
| 28 |
|
| 29 |
[[graph]] |
| 30 |
R1 = """ |
| 31 |
# Deprecated workflow-state polling tasks. |
| 32 |
# (does not support %(suite_name)s templates or offsets |
| 33 |
# or output triggers - just messages) |
| 34 |
|
| 35 |
# status |
| 36 |
bar1<c8b::foo> => g1 |
| 37 |
bar2<c8b::foo:succeeded> => g2 |
| 38 |
|
| 39 |
# output |
| 40 |
baz2<c8b::foo> => g4 # message given in task definition |
| 41 |
qux2<c7::foo> => g7 # message given in task definition |
| 42 |
|
| 43 |
@z1 => x1 |
| 44 |
@z2 => x2 |
| 45 |
|
| 46 |
@a1 => f1 |
| 47 |
@a2 => f2 |
| 48 |
|
| 49 |
@b1 => f3 |
| 50 |
@b2 => f4 |
| 51 |
|
| 52 |
@c1 => f5 |
| 53 |
@c2 => f6 |
| 54 |
@c3 => f7 |
| 55 |
|
| 56 |
""" |
| 57 |
[runtime] |
| 58 |
[[bar1, bar2]] |
| 59 |
[[[workflow state polling]]] |
| 60 |
alt-cylc-run-dir = {{ALT}} |
| 61 |
|
| 62 |
[[qux2, baz2]] |
| 63 |
[[[workflow state polling]]] |
| 64 |
message = "the quick brown" |
| 65 |
alt-cylc-run-dir = {{ALT}} |
| 66 |
|
| 67 |
[[x1, x2]] |
| 68 |
[[f1, f2, f3, f4, f5, f6, f7]] |
| 69 |
[[g1, g2, g4, g7]] |