Debian Codegraph @

tests/functional/cylc-trigger/02-filter-failed/flow.cylc

raw
1 [scheduler]
2 [[events]]
3 expected task failures = 1/fixable1, 1/fixable2, 1/fixable3
4
5 [scheduling]
6 [[graph]]
7 # Unhandled failures stay around for retriggering by "fixer"
8 R1 = """
9 fixer
10 FIXABLES:succeed-all => Z
11 """
12
13 [runtime]
14 [[FIXABLES]]
15 script = test "${CYLC_TASK_SUBMIT_NUMBER}" -eq 2
16 [[fixable1, fixable2, fixable3]]
17 inherit = FIXABLES
18 [[fixer]]
19 script = """
20 cylc__job__wait_cylc_message_started
21 cylc__job__poll_grep_workflow_log '\[1/fixable1/01:running\] failed/ERR'
22 cylc__job__poll_grep_workflow_log '\[1/fixable2/01:running\] failed/ERR'
23 cylc__job__poll_grep_workflow_log '\[1/fixable3/01:running\] failed/ERR'
24 cylc trigger "${CYLC_WORKFLOW_ID}//1/fixable*:failed"
25 """
26 [[Z]]
27 script = true
28 [[z1, z2]]
29 inherit = Z