Debian Codegraph @

tests/functional/ext-trigger/01-no-nudge/flow.cylc

raw
1 [meta]
2 title = "Test for Github Issue 1543"
3 description = """
4 External trigger events should stimulate task processing even when
5 nothing else is happening in the workflow. Here, long-running task bar
6 ext-triggers foo when nothing else is happening. If task processing
7 occurs foo will submit and kill bar, allowing the workflow to shutdown.
8 Otherwise, foo won't submit, bar will keep running, and the workflow will
9 time out.
10 """
11
12 [scheduler]
13 [[events]]
14 abort on stall timeout = True
15 stall timeout = PT30S
16 abort on inactivity timeout = True
17 inactivity timeout = PT30S
18
19 [scheduling]
20 [[special tasks]]
21 external-trigger = foo("drugs and money")
22 [[graph]]
23 # killed tasks are held to prevent retries; they have to be
24 # released before they can be removed.
25 R1 = """
26 foo & bar?
27 bar:fail? => handler
28 """
29
30 [runtime]
31 [[foo]]
32 script = """
33 cylc kill "$CYLC_WORKFLOW_ID//1/bar"
34 cylc__job__poll_grep_workflow_log -E '1/bar.* \(internal\)failed'
35 cylc release "$CYLC_WORKFLOW_ID//1/bar"
36 """
37 [[bar]]
38 script = """
39 sleep 5
40 cylc ext-trigger $CYLC_WORKFLOW_ID "drugs and money" 12345
41 sleep 60
42 """
43 [[handler]]
44 script = true