| 1 |
[meta] |
| 2 |
title = "Workflow to test that restart after reload works." |
| 3 |
description = """First task reloads and stops the workflow, |
| 4 |
which should run to completion on restarting.""" |
| 5 |
|
| 6 |
# The restart can be run as a reference test. |
| 7 |
|
| 8 |
[scheduler] |
| 9 |
UTC mode = True |
| 10 |
[scheduling] |
| 11 |
initial cycle point = 20100808T00 |
| 12 |
final cycle point = 20100809T00 |
| 13 |
#[[special tasks]] |
| 14 |
# sequential = foo |
| 15 |
[[graph]] |
| 16 |
T00 = "foo[-P1D] => foo => bar" |
| 17 |
[runtime] |
| 18 |
[[bar]] |
| 19 |
script = true |
| 20 |
[[foo]] |
| 21 |
script = """ |
| 22 |
if [[ "$CYLC_TASK_CYCLE_POINT" == "$CYLC_WORKFLOW_INITIAL_CYCLE_POINT" ]]; then |
| 23 |
cylc reload "${CYLC_WORKFLOW_ID}" |
| 24 |
cylc__job__poll_grep_workflow_log -F 'Reload completed' |
| 25 |
cylc stop "${CYLC_WORKFLOW_ID}" |
| 26 |
fi""" |