fix get_actor

This commit is contained in:
Chris Wong 2022-05-08 23:12:37 -07:00
parent c03eccf151
commit bfc88f3e51

View file

@ -648,6 +648,8 @@ class Worker:
task.type = ray_client_pb2.ClientTask.NAMED_ACTOR
task.name = name
task.namespace = namespace or ""
# Populate task.data with empty args and kwargs
task.data = dumps_from_client(([], {}), self._client_id)
futures = self._call_schedule_for_task(task, 1)
assert len(futures) == 1
handle = ClientActorHandle(ClientActorRef(futures[0]))