control#

RootSystem.control(command: str, wait_for_completion: bool = True, timeout: float | int = 100) str | None#

Control the node state.

Parameters:
command: str

Command to execute. Options are "restart", "stop_gently", "stop" and "reset".

wait_for_completion: bool, opt

True/False

timeout: Union[float, int], opt

Time limit for monitoring the status of the command. Default is 100 s.

Returns:
bool

True when successful, False when failed.