Debian Codegraph @

tests/f/restart/bad-job-host/flow.cylc

raw
1 #!jinja2
2 [scheduler]
3 [[events]]
4 workflow timeout = PT2M
5 [scheduling]
6 [[graph]]
7 R1 = """
8 t-remote:start => t-shutdown
9 t-shutdown => t-remote-2
10 t-shutdown => t-check-log
11 """
12 [runtime]
13 [[t-remote]]
14 script = """
15 # Hang the task on a remote host for up to 30 seconds
16 touch 'file'
17 timeout 30 bash -c 'while [[ -e 'file' ]]; do sleep 1; done' || true
18 """
19 platform = {{environ['CYLC_TEST_PLATFORM']}}
20 [[t-shutdown]]
21 script = """
22 # Shutdown and wait
23 cylc shutdown --now --max-polls=10 --interval=1 "${CYLC_WORKFLOW_ID}"
24 """
25 [[t-remote-2]]
26 script = """
27 # Release t-remote-1
28 rm -f "${CYLC_WORKFLOW_WORK_DIR}/${CYLC_TASK_CYCLE_POINT}/t-remote/file"
29 """
30 platform = {{environ['CYLC_TEST_PLATFORM']}}
31 [[t-check-log]]
32 script = """
33 grep -q 'ERROR - garbage: initialisation did not complete' \
34 "${CYLC_WORKFLOW_LOG_DIR}/log"
35 cylc shutdown --now "${CYLC_WORKFLOW_ID}"
36 """