mirror of
https://github.com/wassname/ray.git
synced 2026-08-16 11:27:09 +08:00
[gRPC] Migrate raylet client implementation to grpc (#5120)
This commit is contained in:
@@ -220,14 +220,14 @@ cdef class RayletClient:
|
||||
cdef unique_ptr[CRayletClient] client
|
||||
|
||||
def __cinit__(self, raylet_socket,
|
||||
ClientID client_id,
|
||||
WorkerID worker_id,
|
||||
c_bool is_worker,
|
||||
JobID job_id):
|
||||
# We know that we are using Python, so just skip the language
|
||||
# parameter.
|
||||
# TODO(suquark): Should we allow unicode chars in "raylet_socket"?
|
||||
self.client.reset(new CRayletClient(
|
||||
raylet_socket.encode("ascii"), client_id.native(), is_worker,
|
||||
raylet_socket.encode("ascii"), worker_id.native(), is_worker,
|
||||
job_id.native(), LANGUAGE_PYTHON))
|
||||
|
||||
def disconnect(self):
|
||||
@@ -374,7 +374,7 @@ cdef class RayletClient:
|
||||
|
||||
@property
|
||||
def client_id(self):
|
||||
return ClientID(self.client.get().GetClientID().Binary())
|
||||
return ClientID(self.client.get().GetWorkerId().Binary())
|
||||
|
||||
@property
|
||||
def job_id(self):
|
||||
|
||||
Reference in New Issue
Block a user