Esempio n. 1
0
def get_actor(actor_id: str) -> "VirtualActor":
    """Get an virtual actor.

    Args:
        actor_id: The ID of the actor.

    Returns:
        A virtual actor.
    """
    ensure_ray_initialized()
    return virtual_actor_class.get_actor(actor_id, storage_base.get_global_storage())
Esempio n. 2
0
File: api.py Progetto: tchordia/ray
def get_actor(actor_id: str) -> "VirtualActor":
    """Get an virtual actor.

    Args:
        actor_id: The ID of the actor.

    Returns:
        A virtual actor.
    """
    _ensure_workflow_initialized()
    return virtual_actor_class.get_actor(actor_id)