Skip to content

Commit 2fa294a

Browse files
back compat for stop mutation mode
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
1 parent cda95fd commit 2fa294a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cylc/flow/commands.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ async def stop(
209209
else:
210210
# immediate shutdown
211211
try:
212+
# BACK COMPAT: mode=None
213+
# the mode can be `None` for commands issued from older Cylc
214+
# versions
215+
# From: 8.4
216+
# To: 8.5
217+
# Remove at: 8.x
212218
mode = StopMode(mode.value) if mode else StopMode.REQUEST_CLEAN
213219
except ValueError:
214220
raise CommandFailedError(f"Invalid stop mode: '{mode}'") from None

0 commit comments

Comments
 (0)