| 1 |
[scheduling] |
| 2 |
cycling mode = integer |
| 3 |
[[graph]] |
| 4 |
R1 = a => reload-global => b & c |
| 5 |
[runtime] |
| 6 |
[[root]] |
| 7 |
script = true |
| 8 |
[[a,b]] |
| 9 |
platform = localhost |
| 10 |
[[c]] |
| 11 |
platform = $CYLC_TEST_PLATFORM |
| 12 |
[[reload-global]] |
| 13 |
platform = localhost |
| 14 |
script = """ |
| 15 |
# Append to global config |
| 16 |
cat >> "$CYLC_CONF_PATH/global.cylc" <<EOF |
| 17 |
[platforms] |
| 18 |
[[localhost,${CYLC_TEST_PLATFORM}]] |
| 19 |
global init-script = echo "global init-script reloaded!" |
| 20 |
[task events] |
| 21 |
handlers = echo "!!EVENT!! %(event)s %(id)s" |
| 22 |
handler events = succeeded |
| 23 |
EOF |
| 24 |
|
| 25 |
# Log the new config |
| 26 |
cylc config |
| 27 |
|
| 28 |
# Reload the global config |
| 29 |
cylc reload --global "${CYLC_WORKFLOW_ID}" |
| 30 |
""" |