| 1 |
[scheduling] |
| 2 |
cycling mode = integer |
| 3 |
[[graph]] |
| 4 |
R1 = """ |
| 5 |
a => reload-global-error-workflow? => b & c |
| 6 |
""" |
| 7 |
[runtime] |
| 8 |
[[root]] |
| 9 |
script = true |
| 10 |
[[a,b]] |
| 11 |
platform = localhost |
| 12 |
[[c]] |
| 13 |
platform = $CYLC_TEST_PLATFORM |
| 14 |
[[reload-global-error-workflow]] |
| 15 |
platform = localhost |
| 16 |
script = """ |
| 17 |
# Append to global config |
| 18 |
cat >> "$CYLC_CONF_PATH/global.cylc" <<EOF |
| 19 |
[platforms] |
| 20 |
[[localhost,${CYLC_TEST_PLATFORM}]] |
| 21 |
global init-script = echo "global init-script reloaded!" |
| 22 |
EOF |
| 23 |
|
| 24 |
# Append to workflow config, with an error |
| 25 |
cat >> "$CYLC_WORKFLOW_RUN_DIR/flow.cylc" <<EOF |
| 26 |
[garbage-workflow] |
| 27 |
EOF |
| 28 |
|
| 29 |
# Reload the global config - should fail reloading the workflow and roll back |
| 30 |
cylc reload --global "${CYLC_WORKFLOW_ID}" |
| 31 |
""" |