mirror of
https://github.com/wassname/ray.git
synced 2026-07-18 12:40:56 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user