- exception ray.exceptions.RayActorError(cause: Optional[Union[ray.exceptions.RayTaskError, <MagicMock name='mock.ActorDiedErrorContext' id='140262712197520'>]] = None)[source]#
Indicates that the actor died unexpectedly before finishing a task.
This exception could happen either because the actor process dies while executing a task, or because a task is submitted to a dead actor.
If the actor is dead because of an exception thrown in its creation tasks, RayActorError will contain the creation_task_error, which is used to reconstruct the exception on the caller side.
cause – The cause of the actor error.
RayTaskErrortype means the actor has died because of an exception within
ActorDiedErrorContextmeans the actor has died because of unexepected system error. None means the cause is not known. Theoretically, this should not happen, but it is there as a safety check.
PublicAPI: This API is stable across Ray releases.