From c5d56f8da3abcea51c160956e9f0b042d9ff245c Mon Sep 17 00:00:00 2001 From: Oliver Sanders Date: Wed, 19 Feb 2025 12:07:18 +0000 Subject: [PATCH] doc: document auto-restart "force mode" --- changes.d/6623.fix.md | 4 +++ cylc/flow/cfgspec/globalcfg.py | 49 ++++++++++++++++++++++++++++++---- 2 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 changes.d/6623.fix.md diff --git a/changes.d/6623.fix.md b/changes.d/6623.fix.md new file mode 100644 index 0000000000..beb3b60af8 --- /dev/null +++ b/changes.d/6623.fix.md @@ -0,0 +1,4 @@ +auto restart: The "force condemn" option (that tells workflows running on a +server to shutdown as opposed to migrate) hasn't worked with the host-selection +mechanism since Cylc 8.0.0. This has now been fixed and the "force condemn" +option has been restored in the documentation. diff --git a/cylc/flow/cfgspec/globalcfg.py b/cylc/flow/cfgspec/globalcfg.py index 7ca7372e44..b4f8e63273 100644 --- a/cylc/flow/cfgspec/globalcfg.py +++ b/cylc/flow/cfgspec/globalcfg.py @@ -826,16 +826,55 @@ def default_for( range. ''') Conf('condemned', VDR.V_ABSOLUTE_HOST_LIST, desc=f''' - These hosts will not be used to run jobs. + List run hosts that workflows should *not* run on. - If workflows are already running on - condemned hosts, Cylc will shut them down and - restart them on different hosts. + Any hosts listed here will be subtracted from the + `available ` + hosts: + + * Workflows will not start on condemned hosts. + * Workflows that are running on condemned hosts will attempt + to migrate to an uncondemned host (providing the + `auto restart + ` + plugin is enabled). + + This feature can be used to drain a host for patching, or + remove a host that is surplus to requirement. + + Hostnames listed here may be followed by a ``!`` character. + This activates "force mode", workflows running on a + force-condenmed host will shutdown rather than attempting to + migrate (providing the + `auto restart + ` plugin + is enabled). + + .. rubric:: Example: + + .. code-block:: cylc + + [scheduler] + [[run hosts]] + # there are three hosts in the "pool" + available = host1, host2, host3 + + # however two have been taken out: + # * workflows running on "host1" will attempt to + # restart on "host3" + # * workflows running on "host2" will shutdown + condemned = host1, host2! .. seealso:: :ref:`auto-stop-restart` + .. versionchanged:: 8.4.2 + + The "force-condemn" option caused issues at workflow + startup for Cylc versions between 8.0.0 and 8.4.1 + inclusive. + .. versionchanged:: 8.0.0 {REPLACES}``[suite servers]condemned hosts``. @@ -1336,7 +1375,7 @@ def default_for( The means by which task progress messages are reported back to the running workflow. - ..rubric:: Options: + .. rubric:: Options: zmq Direct client-server TCP communication via network ports