Debian Codegraph @

tests/f/reload/11-retrying/flow.cylc

raw
1 [meta]
2 title = "test that a reloaded retrying task does retry"
3 description = """
4 this requires some state vars to be carried over to the
5 new task proxy; ref github #945
6 """
7 [scheduling]
8 [[graph]]
9 R1 = retrier & reloader
10 [runtime]
11 [[retrier]]
12 script = """
13 cylc__job__wait_cylc_message_started
14 sleep 1
15 if ((CYLC_TASK_TRY_NUMBER == 1)); then
16 # Kill the job, so task will go into waiting (held)
17 cylc kill "${CYLC_WORKFLOW_ID}//1/retrier"
18 sleep 120 # Does not matter how long as the job will be killed
19 fi
20 """
21 [[[job]]]
22 execution retry delays = PT0S
23 [[reloader]]
24 script = """
25 cylc__job__poll_grep_workflow_log -E '1/retrier/01:running\(held\).* => waiting\(held\)'
26 cylc reload "${CYLC_WORKFLOW_ID}"
27 cylc reload "${CYLC_WORKFLOW_ID}"
28 cylc__job__poll_grep_workflow_log -F 'Reload completed'
29 cylc release "${CYLC_WORKFLOW_ID}//1/retrier"
30 """