mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
fix get_actor
This commit is contained in:
parent
c03eccf151
commit
bfc88f3e51
1 changed files with 2 additions and 0 deletions
|
@ -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]))
|
||||
|
|
Loading…
Add table
Reference in a new issue