ray.runtime_context.RuntimeContext.get_actor_name#
- RuntimeContext.get_actor_name() str | None[source]#
 Get the current actor name of this worker.
This shouldn’t be used in a driver process. The name is in string format.
- Returns:
 The current actor name of this worker. If a current worker is an actor, and if actor name doesn’t exist, it returns an empty string. If a current worker is not an actor, it returns None.