mirror of
https://github.com/wassname/ray.git
synced 2026-08-03 13:10:57 +08:00
Handle exchange of direct call objects between tasks and actors (#6147)
This commit is contained in:
@@ -1015,6 +1015,12 @@ cdef class CoreWorker:
|
||||
# Note: faster to not release GIL for short-running op.
|
||||
self.core_worker.get().RemoveObjectIDReference(c_object_id)
|
||||
|
||||
def promote_object_to_plasma(self, ObjectID object_id):
|
||||
cdef:
|
||||
CObjectID c_object_id = object_id.native()
|
||||
self.core_worker.get().PromoteObjectToPlasma(c_object_id)
|
||||
return object_id.with_plasma_transport_type()
|
||||
|
||||
# TODO: handle noreturn better
|
||||
cdef store_task_outputs(
|
||||
self, worker, outputs, const c_vector[CObjectID] return_ids,
|
||||
|
||||
Reference in New Issue
Block a user