mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:38:16 +08:00
[core] Post task submission to IO loop (#8090)
* Post to IO loop * Unused * Fix build
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user