Debian Codegraph @

tests/f/flow-triggers/04-all-past/flow.cylc

raw
1 #!Jinja2
2
3 # flow:1
4 # a(succeeded)
5 # b(succeeded)
6 # c(running)
7 # flow:<new>
8 # a(running)
9 #
10 # by:
11 # cylc trigger a
12 #
13 # Result:
14 # The triggered task belongs to flow 1; it will run but not flow on.
15 #
16 # flow:1
17 # a #1
18 # a #2
19 # b
20 # c
21 # d
22
23 {% if WAIT is defined %}
24 {% set OPT = "--wait" %}
25 {% else %}
26 {% set OPT = "" %}
27 {% endif %}
28
29 [scheduler]
30 allow implicit tasks = True
31 [[events]]
32 abort on stall timeout = True
33 stall timeout = PT0S
34 abort on inactivity timeout = True
35 inactivity timeout = PT1M
36 [scheduling]
37 [[graph]]
38 R1 = "a => b => c => d"
39 [runtime]
40 [[d]]
41 script = """
42 if (( $CYLC_TASK_SUBMIT_NUMBER == 1 )); then
43 cylc trigger {{OPT}} ${CYLC_WORKFLOW_ID}//1/a
44 cylc__job__poll_grep_workflow_log -E '1/a/02:running.*succeeded'
45 fi
46 """