[Refactor] Rename ClientId to NodeId (#10992)

* rename ClientId to NodeId

* format lint

* format lint

* fix conflicts

* rename new ClientId to NodeId

* update lint

* make same version of clang-format with travis ci
This commit is contained in:
DK.Pino
2020-09-27 10:24:21 -07:00
committed by GitHub
parent f69b390755
commit db7097fb1f
111 changed files with 862 additions and 889 deletions
+4 -4
View File
@@ -76,7 +76,7 @@ from ray.includes.unique_ids cimport (
CActorID,
CActorCheckpointID,
CObjectID,
CClientID,
CNodeID,
CPlacementGroupID,
)
from ray.includes.libcoreworker cimport (
@@ -784,7 +784,7 @@ cdef class CoreWorker:
CCoreWorkerProcess.GetCoreWorker().GetCurrentJobId().Binary())
def get_current_node_id(self):
return ClientID(
return NodeID(
CCoreWorkerProcess.GetCoreWorker().GetCurrentNodeId().Binary())
def get_actor_id(self):
@@ -1479,10 +1479,10 @@ cdef class CoreWorker:
actor_id.native(), checkpoint_id.native()))
def set_resource(self, basestring resource_name,
double capacity, ClientID client_id):
double capacity, NodeID client_id):
CCoreWorkerProcess.GetCoreWorker().SetResource(
resource_name.encode("ascii"), capacity,
CClientID.FromBinary(client_id.binary()))
CNodeID.FromBinary(client_id.binary()))
def force_spill_objects(self, object_refs):
cdef c_vector[CObjectID] object_ids