[core] Post task submission to IO loop (#8090)

* Post to IO loop

* Unused

* Fix build
This commit is contained in:
Stephanie Wang
2020-04-20 19:13:50 -07:00
committed by GitHub
parent 708dff6d8f
commit eefea4e29c
6 changed files with 33 additions and 38 deletions
+2 -2
View File
@@ -868,9 +868,9 @@ cdef class CoreWorker:
prepare_args(self, language, args, &args_vector)
with nogil:
check_status(CCoreWorkerProcess.GetCoreWorker().SubmitTask(
CCoreWorkerProcess.GetCoreWorker().SubmitTask(
ray_function, args_vector, task_options, &return_ids,
max_retries))
max_retries)
return VectorToObjectIDs(return_ids)
+1 -1
View File
@@ -82,7 +82,7 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
CWorkerType &GetWorkerType()
CLanguage &GetLanguage()
CRayStatus SubmitTask(
void SubmitTask(
const CRayFunction &function, const c_vector[CTaskArg] &args,
const CTaskOptions &options, c_vector[CObjectID] *return_ids,
int max_retries)