yr.InstanceProxy.real_id

yr.InstanceProxy.real_id#

property InstanceProxy.real_id: str#

The real instance ID assigned by the runtime.

instance_id is a logical key used internally. This property blocks until the runtime finishes scheduling the actor (default timeout: 30 seconds), then resolves it to the physical instance ID.

Raises:

TimeoutError – If the actor is not ready within 30 seconds.

Returns:

The real instance ID. Data type is str.

Examples

>>> ins = MyActor.invoke()
>>> print(ins.real_id)