| 1 |
[meta] |
| 2 |
title = cycling period change |
| 3 |
description = """change cycle points""" |
| 4 |
|
| 5 |
[scheduler] |
| 6 |
UTC mode = True |
| 7 |
[[events]] |
| 8 |
stall timeout = PT0S |
| 9 |
abort on stall timeout = True |
| 10 |
|
| 11 |
[scheduling] |
| 12 |
initial cycle point = 20100101T00 |
| 13 |
final cycle point = 20100101T18 |
| 14 |
[[graph]] |
| 15 |
T00 = reloader => a |
| 16 |
T00,T12 = a[-PT12H] => a |
| 17 |
[runtime] |
| 18 |
[[reloader]] |
| 19 |
script = """ |
| 20 |
# I should only run once. |
| 21 |
if ((CYLC_TASK_SUBMIT_NUMBER != 1)); then |
| 22 |
exit 1 |
| 23 |
fi |
| 24 |
sed -i 's/T00,T12 = a\[-PT12H\]/T00,T06,T12,T18 = a[-PT6H]/'\ |
| 25 |
"${CYLC_WORKFLOW_RUN_DIR}/flow.cylc" |
| 26 |
cylc reload "${CYLC_WORKFLOW_ID}" |
| 27 |
cylc__job__poll_grep_workflow_log -F 'Reload completed' |
| 28 |
""" |
| 29 |
[[a]] |
| 30 |
script = true |