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:
Edward Oakes
2019-10-20 22:05:28 -07:00
committed by GitHub
parent f286356e06
commit fc56872012
28 changed files with 393 additions and 34 deletions
+12
View File
@@ -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)