restart#

ACPInstance.restart(stop_timeout=None, start_timeout=None)#

Stop, then start the product instance.

Parameters:
  • stop_timeout (float | None) – Time in seconds after which the instance is forcefully stopped. Note that not all launch methods may implement this parameter. If they do not, the parameter is ignored.

  • start_timeout (float | None) – Timeout to wait until ACP responds. If None is specified, the check that ACP has started is skipped.

Raises:
  • RuntimeError – If the instance is already in the stopped state.

  • RuntimeError – If the instance does not allow restarting.