#!jinja2 [scheduler] [[events]] workflow timeout = PT2M [scheduling] [[graph]] R1 = """ t-remote:start => t-shutdown t-shutdown => t-remote-2 t-shutdown => t-check-log """ [runtime] [[t-remote]] script = """ # Hang the task on a remote host for up to 30 seconds touch 'file' timeout 30 bash -c 'while [[ -e 'file' ]]; do sleep 1; done' || true """ platform = {{environ['CYLC_TEST_PLATFORM']}} [[t-shutdown]] script = """ # Shutdown and wait cylc shutdown --now --max-polls=10 --interval=1 "${CYLC_WORKFLOW_ID}" """ [[t-remote-2]] script = """ # Release t-remote-1 rm -f "${CYLC_WORKFLOW_WORK_DIR}/${CYLC_TASK_CYCLE_POINT}/t-remote/file" """ platform = {{environ['CYLC_TEST_PLATFORM']}} [[t-check-log]] script = """ grep -q 'ERROR - garbage: initialisation did not complete' \ "${CYLC_WORKFLOW_LOG_DIR}/log" cylc shutdown --now "${CYLC_WORKFLOW_ID}" """