[meta] title = "Workflow to test that restart after reload works." description = """First task reloads and stops the workflow, which should run to completion on restarting.""" # The restart can be run as a reference test. [scheduler] UTC mode = True [scheduling] initial cycle point = 20100808T00 final cycle point = 20100809T00 #[[special tasks]] # sequential = foo [[graph]] T00 = "foo[-P1D] => foo => bar" [runtime] [[bar]] script = true [[foo]] script = """ if [[ "$CYLC_TASK_CYCLE_POINT" == "$CYLC_WORKFLOW_INITIAL_CYCLE_POINT" ]]; then cylc reload "${CYLC_WORKFLOW_ID}" cylc__job__poll_grep_workflow_log -F 'Reload completed' cylc stop "${CYLC_WORKFLOW_ID}" fi"""