Debian Codegraph @

tests/functional/cylc-poll/01-task-failed/flow.cylc

raw
1 [meta]
2 title = "Test workflow for task state change on poll result."
3 description = """
4 Task A fails silently - it will be stuck in 'running'
5 unless polled. Task B then polls A to find it has failed, allowing A to
6 suicide via a :fail trigger, and the workflow to shut down successfully.
7 """
8
9 [scheduler]
10 [[events]]
11 expected task failures = 1/a
12
13 [scheduling]
14 [[graph]]
15 R1 = """
16 a:start => b
17 a:fail => handled
18 """
19 [runtime]
20 [[a]]
21 init-script = cylc__job__disable_fail_signals ERR EXIT
22 script = """
23 cylc__job__wait_cylc_message_started
24 exit 1
25 """
26 [[b]]
27 script = cylc poll "$CYLC_WORKFLOW_ID//*/a"
28 [[handled]]
29 # (allows a:fail to be removed as handled)
30 script = true