ray.runtime_context.RuntimeContext.actor_id#

property RuntimeContext.actor_id#

Get the current actor ID in this worker.

ID of the actor of the current process. This shouldn’t be used in a driver process.

Returns:

The current actor id in this worker. None if there’s no actor id.

Warning

DEPRECATED: This API is deprecated and may be removed in future Ray releases. Use get_actor_id() instead