Debian Codegraph @

tests/functional/cylc-kill/02-submitted/flow.cylc

raw
1 #!Jinja2
2
3 [scheduler]
4 UTC mode = True
5 [[events]]
6 expected task failures = 1/killable-1, 1/killable-2, 1/killable-3
7
8 [scheduling]
9 [[graph]]
10 R1 = """
11 KILLABLE:submit-all? => killer
12 KILLABLE:submit-fail-all? => stopper
13 """
14
15 [runtime]
16 [[KILLABLE]]
17 init-script="""
18 echo "CYLC_JOB_PID=$$" >>"$0.status"
19 sleep 60
20 """
21 script=true
22 [[killable-1, killable-2, killable-3]]
23 inherit=KILLABLE
24 [[killer]]
25 script="""
26 cylc__job__wait_cylc_message_started
27 cylc__job__poll_grep_workflow_log -F '1/killable-1 -triggered'
28 cylc__job__poll_grep_workflow_log -F '1/killable-2 -triggered'
29 cylc__job__poll_grep_workflow_log -F '1/killable-3 -triggered'
30 # (Avoid killing myself if my started message hasn't arrived yet:)
31 cylc kill "${CYLC_WORKFLOW_ID}//*/killable*:submitted"
32 """
33 [[stopper]]
34 script=cylc stop "${CYLC_WORKFLOW_ID}"