Debian Codegraph @

tests/functional/cylc-kill/05-retries/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 & b:submitted? => killer => end
11
12 # Should not get these outputs:
13 a:failed? | b:submit-failed? | c:submit-failed? => nope
14 """
15 [runtime]
16 [[a]]
17 script = sleep 40
18 execution retry delays = PT0S
19 [[b]]
20 platform = old_street
21 submission retry delays = PT0S
22 [[c]]
23 platform = $(sleep 40; echo localhost)
24 submission retry delays = PT0S
25 [[killer]]
26 script = """
27 cylc kill "$CYLC_WORKFLOW_ID//1/a" "$CYLC_WORKFLOW_ID//1/b"
28
29 cylc__job__poll_grep_workflow_log -E '1\/c.* => preparing'
30 cylc kill "$CYLC_WORKFLOW_ID//1/c"
31 """
32 [[end]]
33 script = """
34 for task in a b c; do
35 cylc__job__poll_grep_workflow_log -E "1\/${task}.* retrying"
36 done
37 cylc stop "$CYLC_WORKFLOW_ID" --now --now
38 """