mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 17:58:35 +08:00
[GCS] global state query node info table from GCS. (#8498)
This commit is contained in:
@@ -14,6 +14,7 @@ cdef extern from "ray/gcs/gcs_client/global_state_accessor.h" nogil:
|
||||
c_bool Connect()
|
||||
void Disconnect()
|
||||
c_vector[c_string] GetAllJobInfo()
|
||||
c_vector[c_string] GetAllNodeInfo()
|
||||
c_vector[c_string] GetAllProfileInfo()
|
||||
c_vector[c_string] GetAllObjectInfo()
|
||||
unique_ptr[c_string] GetObjectInfo(const CObjectID &object_id)
|
||||
|
||||
@@ -29,6 +29,9 @@ cdef class GlobalStateAccessor:
|
||||
def get_job_table(self):
|
||||
return self.inner.get().GetAllJobInfo()
|
||||
|
||||
def get_node_table(self):
|
||||
return self.inner.get().GetAllNodeInfo()
|
||||
|
||||
def get_profile_table(self):
|
||||
return self.inner.get().GetAllProfileInfo()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user