Debian Codegraph @

tests/functional/restart/58-removed-task/flow.cylc

raw
1 #!Jinja2
2
3 # Task a shuts the scheduler down cleanly with --now after b and c have failed.
4 # On restart, a waits for a and b to be polled before finishing (otherwise we
5 # could shut down before poll results come in).
6
7 {% set INCL_B_C = INCL_B_C | default(True) %}
8 [scheduler]
9 [[events]]
10 stall timeout = PT0S
11 abort on stall timeout = True
12 inactivity timeout = PT30S
13 abort on inactivity timeout = True
14 [scheduling]
15 [[graph]]
16 R1 = """
17 a
18 {% if INCL_B_C %}
19 b & c?
20 {% endif %}
21 """
22 [runtime]
23 [[a]]
24 script = """
25 cylc__job__poll_grep_workflow_log "1/b.*failed"
26 cylc__job__poll_grep_workflow_log "1/c.*failed"
27 cylc stop --now $CYLC_WORKFLOW_ID
28 cylc__job__poll_grep_workflow_log "1/a.*(polled)started"
29 cylc__job__poll_grep_workflow_log "1/b.*(polled)failed"
30 """
31 [[b, c]]
32 script = "false"