RayActorError#

exception ray.exceptions.RayActorError(actor_id: str = None, error_msg: str = 'The actor experienced an error before finishing this task.', actor_init_failed: bool = False, preempted: bool = False)[source]#

Indicates that the actor has outages unexpectedly before finishing a task.

This exception could happen because the actor process is dead, or is unavailable for the moment. Ray raises subclasses ActorDiedError and ActorUnavailableError respectively.

Parameters:
  • actor_id (str) – The actor ID in hex.

  • error_msg (str) – The error message.

  • actor_init_failed (bool) – Whether the actor failed while running its __init__ method.

  • preempted (bool) – Whether the actor died because its node was preempted.