Signed-off-by: Sage Weil <sage@redhat.com>
"""
raise NotImplementedError()
+ def pause(self):
+ # type: () -> None
+ raise NotImplementedError()
+
+ def resume(self):
+ # type: () -> None
+ raise NotImplementedError()
+
def add_host(self, host_spec):
# type: (HostSpec) -> Completion
"""
return HandleCommandResult(-errno.EINVAL, stderr="Module '{0}' not found".format(module_name))
+ @_cli_write_command(
+ 'orch pause',
+ desc='Pause orchestrator background work')
+ def _pause(self):
+ self.pause()
+ return HandleCommandResult()
+
+ @_cli_write_command(
+ 'orch resume',
+ desc='Resume orchestrator background work (if paused)')
+ def _resume(self):
+ self.resume()
+ return HandleCommandResult()
+
@_cli_write_command(
'orch cancel',
desc='cancels ongoing operations')