Debian Codegraph @

tests/functional/cylc-kill/04-handlers/flow.cylc

raw
1 [scheduler]
2 allow implicit tasks = True
3 [[events]]
4 expected task failures = 1/a, 1/b, 1/c
5 stall timeout = PT0S
6 abort on stall timeout = True
7 [scheduling]
8 [[graph]]
9 R1 = """
10 a:started => killer
11 a:failed => end
12
13 b:submitted? => killer
14 b:submit-failed? => end
15
16 c:submit-failed? => end
17
18 c:submitted? => nope
19 """
20 [runtime]
21 [[a, b, c]]
22 [[[events]]]
23 failed handlers = echo %(id)s
24 submission failed handlers = echo %(id)s
25 [[a]]
26 script = sleep 40
27 [[b]]
28 platform = old_street
29 [[c]]
30 platform = $(sleep 40; echo localhost)
31 [[killer]]
32 script = """
33 cylc kill "$CYLC_WORKFLOW_ID//1/a" "$CYLC_WORKFLOW_ID//1/b"
34
35 cylc__job__poll_grep_workflow_log -E '1\/c.* => preparing'
36 cylc kill "$CYLC_WORKFLOW_ID//1/c"
37 """
38 [[end]]
39 script = cylc stop "$CYLC_WORKFLOW_ID" --now --now