ray.experimental.state.common.ActorState
ray.experimental.state.common.ActorState#
- class ray.experimental.state.common.ActorState(actor_id: str, class_name: str, state: typing_extensions.Literal[DEPENDENCIES_UNREADY, PENDING_CREATION, ALIVE, RESTARTING, DEAD], job_id: str, name: Optional[str], node_id: str, pid: int, ray_namespace: str, serialized_runtime_env: str, required_resources: dict, death_cause: Optional[dict], is_detached: bool, placement_group_id: str)[source]#
Bases:
ray.experimental.state.common.StateSchema
Actor State
Below columns can be used for the
--filter
option.actor_id
class_name
name
ray_namespace
node_id
placement_group_id
state
job_id
pid
Below columns are available only when
get
API is used,--detail
is specified through CLI, ordetail=True
is given to Python APIs.death_cause
is_detached
serialized_runtime_env
placement_group_id
required_resources
- actor_id: str#
The id of the actor.
- class_name: str#
The class name of the actor.
- state: typing_extensions.Literal[DEPENDENCIES_UNREADY, PENDING_CREATION, ALIVE, RESTARTING, DEAD]#
The state of the actor.
DEPENDENCIES_UNREADY: Actor is waiting for dependency to be ready. E.g., a new actor is waiting for object ref that’s created from other remote task.
PENDING_CREATION: Actor’s dependency is ready, but it is not created yet. It could be because there are not enough resources, too many actor entries in the scheduler queue, or the actor creation is slow (e.g., slow runtime environment creation, slow worker startup, or etc.).
ALIVE: The actor is created, and it is alive.
RESTARTING: The actor is dead, and it is restarting. It is equivalent to
PENDING_CREATION
, but means the actor was dead more than once.DEAD: The actor is permanatly dead.
- job_id: str#
The job id of this actor.
- node_id: str#
The node id of this actor. If the actor is restarting, it could be the node id of the dead actor (and it will be re-updated when the actor is successfully restarted).
- pid: int#
The pid of the actor. 0 if it is not created yet.
- ray_namespace: str#
The namespace of the actor.
- serialized_runtime_env: str#
The runtime environment information of the actor.
- required_resources: dict#
The resource requirement of the actor.
- death_cause: Optional[dict]#
Actor’s death information in detail. None if the actor is not dead yet.
- is_detached: bool#
True if the actor is detached. False otherwise.
- placement_group_id: str#
The placement group id that’s associated with this actor.