Return RayObjects to core worker (#6052)

This commit is contained in:
Edward Oakes
2019-11-04 20:27:57 -08:00
committed by Eric Liang
parent 18241f4a2d
commit 043d1f4094
11 changed files with 227 additions and 192 deletions
+5 -1
View File
@@ -62,7 +62,6 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
const c_vector[shared_ptr[CRayObject]] &args,
const c_vector[CObjectID] &arg_reference_ids,
const c_vector[CObjectID] &return_ids,
c_bool is_direct_call,
c_vector[shared_ptr[CRayObject]] *returns) nogil,
CRayStatus() nogil,
void () nogil)
@@ -85,6 +84,11 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
unique_ptr[CProfileEvent] CreateProfileEvent(
const c_string &event_type)
CRayStatus AllocateReturnObjects(
const c_vector[CObjectID] &object_ids,
const c_vector[size_t] &data_sizes,
const c_vector[shared_ptr[CBuffer]] &metadatas,
c_vector[shared_ptr[CRayObject]] *return_objects)
# TODO(edoakes): remove this once the raylet client is no longer used
# directly.