pylabrobot.opentrons.OT2.stop_run#

async OT2.stop_run(run_id: str, timeout: float | None = None) → RunInfo#

Stop a run the robot holds and wait until the robot reports it finished.

For a run this object did not create, such as the one get_unfinished_run returns. A run already finished is left as it is. This object’s own run is stopped by stop().

Parameters:
  • run_id (str) – the run to stop.

  • timeout (float | None) – how long to wait for it to finish, in s. command_timeout when None.

Returns:

The run as last read.

Raises:
  • ValueError – If timeout is not finite and greater than zero.

  • RuntimeError – If run_id is this object’s own run.

  • OpentronsError – If the robot does not take the stop request.

  • TimeoutError – If the run has not finished within timeout.

Return type:

RunInfo