MCPcopy
hub / github.com/ray-project/ray / create_actor_fn

Function create_actor_fn

python/ray/data/tests/test_actor_pool_map_operator.py:914–919  ·  view source on GitHub ↗
(
        labels: Dict[str, Any],
        logical_actor_id: str = "Actor1",
    )

Source from the content-addressed store, hash-verified

912 logger_name = "ray.data._internal.execution.operators.actor_pool_map_operator"
913
914 def create_actor_fn(
915 labels: Dict[str, Any],
916 logical_actor_id: str = "Actor1",
917 ) -> Tuple[ActorHandle, ObjectRef[Any], ExecutionResources]:
918 actor = PoolWorker.options(_labels=labels).remote("node1")
919 return actor, actor.get_location.remote(), ExecutionResources(cpu=1)
920
921 config = AutoscalingActorConfig(
922 min_size=1,

Callers

nothing calls this directly

Calls 3

ExecutionResourcesClass · 0.90
remoteMethod · 0.45
optionsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…