Skip to content

Commit

Permalink
cli: remove gui from command blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Aug 13, 2021
1 parent 15d2f37 commit 9037308
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cylc/flow/network/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,10 @@ class TimePoint(String):
class WorkflowStopMode(Enum):
"""The mode used to stop a running workflow."""

# NOTE: using a different enum because:
# * Graphene requires special enums.
# * We only want to offer a subset of stop modes.

# Note: contains only the REQUEST_* values from StopMode
Clean = StopMode.REQUEST_CLEAN.value
Kill = StopMode.REQUEST_KILL.value
Expand Down
5 changes: 5 additions & 0 deletions cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,11 @@ def command_stop(
pass
else:
# immediate shutdown
try:
mode = StopMode(mode)
except ValueError:
LOG.error(f'Invalid stop mode {mode}')
return
self._set_stop(mode)
if mode is StopMode.REQUEST_KILL:
self.time_next_kill = time()
Expand Down
2 changes: 0 additions & 2 deletions cylc/flow/scripts/cylc.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ def get_version(long=False):
' use cylc graph <flow1> --diff <flow2>',
'gscan':
'cylc gscan has been removed, use the web UI',
'gui':
'cylc gui has been removed, use the web UI',
'insert':
'inserting tasks is now done automatically',
'jobscript':
Expand Down

0 comments on commit 9037308

Please sign in to comment.