ray.util.state.get_actor(id: str, address: str | None = None, timeout: int = 30, _explain: bool = False) Dict | None[source]#

Get an actor by id.

  • id – Id of the actor

  • address – Ray bootstrap address, could be auto, localhost:6379. If None, it will be resolved automatically from an initialized ray.

  • timeout – Max timeout value for the state API requests made.

  • _explain – Print the API information such as API latency or failed query information.


None if actor not found, or ActorState.


RayStateApiException – if the CLI failed to query the data.

DeveloperAPI: This API may change across minor Ray releases.