| 1 |
#!jinja2 |
| 2 |
[meta] |
| 3 |
title = Test: flow.cylc[scheduling]stop after cycle point |
| 4 |
description = """ |
| 5 |
Test: |
| 6 |
1. That [scheduling]stop after cycle point works |
| 7 |
2. That cylc play --stop-cycle-point overrides the config. |
| 8 |
""" |
| 9 |
|
| 10 |
[scheduler] |
| 11 |
UTC mode = True |
| 12 |
cycle point format = %Y |
| 13 |
[[events]] |
| 14 |
# prevent workflow hanging if restarted with nothing more to do |
| 15 |
restart timeout = PT0S |
| 16 |
|
| 17 |
[scheduling] |
| 18 |
runahead limit = P0 |
| 19 |
initial cycle point = 1970 |
| 20 |
final cycle point = 1980 |
| 21 |
stop after cycle point = {{ environ['CFG_STOPCP'] }} |
| 22 |
[[graph]] |
| 23 |
P1Y = hello |
| 24 |
|
| 25 |
[runtime] |
| 26 |
[[hello]] |
| 27 |
{% if MANUAL_SHUTDOWN is defined %} |
| 28 |
script = """ |
| 29 |
if [[ "$CYLC_TASK_CYCLE_POINT" == {{ MANUAL_SHUTDOWN }} ]]; then |
| 30 |
cylc stop "$CYLC_WORKFLOW_ID" |
| 31 |
fi |
| 32 |
""" |
| 33 |
{% endif %} |