Debian Codegraph @

tests/functional/intelligent-host-selection/04-kill/flow.cylc

raw
1 [meta]
2 title = "Try out scenarios for intelligent host selection."
3 description = """
4 Tasks
5 - goodhost: a control to check that everything works
6 - badhost is always going to fail
7 - mixedhost contains some hosts that will and won't fail
8 """
9
10 [scheduler]
11 [[events]]
12 expected task failures = 1/goodhosttask, 1/mixedhosttask
13
14
15 [scheduling]
16 cycling mode = integer
17 initial cycle point = 1
18 [[graph]]
19 # Run good and mixed as controls
20 R1 = """
21 goodhosttask & mixedhosttask
22 goodhosttask:start => stop_g
23 mixedhosttask:start => stop_m
24 """
25
26 [runtime]
27 [[root]]
28 script = sleep 120 & echo $! >file; wait
29
30 [[mystop]]
31 script="""
32 sleep 5 # Give the badhosts list time to empty
33 cylc kill "$CYLC_WORKFLOW_ID//$TASK"
34 cylc stop $CYLC_WORKFLOW_ID
35 """
36
37 [[goodhosttask]]
38 platform = goodhostplatform
39
40 [[mixedhosttask]]
41 script=sleep 120 & echo $! >file; wait
42
43 platform = mixedhostplatform
44
45 [[stop_g]]
46 inherit = mystop
47 [[[environment]]]
48 TASK = 1/goodhosttask
49
50 [[stop_m]]
51 inherit = mystop
52 [[[environment]]]
53 TASK = 1/mixedhosttask