mirror of
https://github.com/wassname/ray.git
synced 2026-07-17 11:32:33 +08:00
Send active object IDs to the raylet (#5803)
* Send active object IDs to the raylet * comment * comments * dedup * signed int in config * comments * Remove object ID from monitor * Fix test * re-add check * fix cast * check if core worker * Add comment * Reservoir sampling * Fix lint * Pointer return * tmp * Fix merge * Initialize object ids properly * Fix lint
This commit is contained in:
@@ -725,3 +725,15 @@ cdef class CoreWorker:
|
||||
check_status(self.core_worker.get().SerializeActorHandle(
|
||||
c_actor_id, &output))
|
||||
return output
|
||||
|
||||
def add_active_object_id(self, ObjectID object_id):
|
||||
cdef:
|
||||
CObjectID c_object_id = object_id.native()
|
||||
with nogil:
|
||||
self.core_worker.get().AddActiveObjectID(c_object_id)
|
||||
|
||||
def remove_active_object_id(self, ObjectID object_id):
|
||||
cdef:
|
||||
CObjectID c_object_id = object_id.native()
|
||||
with nogil:
|
||||
self.core_worker.get().RemoveActiveObjectID(c_object_id)
|
||||
|
||||
Reference in New Issue
Block a user