mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 20:35:31 +08:00
Move actor task submission to io service (#9093)
This commit is contained in:
@@ -109,7 +109,8 @@ include "includes/serialization.pxi"
|
||||
include "includes/libcoreworker.pxi"
|
||||
include "includes/global_state_accessor.pxi"
|
||||
|
||||
# Expose GCC & Clang macro to report whether C++ optimizations were enabled during compilation.
|
||||
# Expose GCC & Clang macro to report whether C++ optimizations were enabled
|
||||
# during compilation.
|
||||
OPTIMIZED = __OPTIMIZE__
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -953,11 +954,10 @@ cdef class CoreWorker:
|
||||
prepare_args(self, language, args, &args_vector)
|
||||
|
||||
with nogil:
|
||||
check_status(
|
||||
CCoreWorkerProcess.GetCoreWorker().SubmitActorTask(
|
||||
c_actor_id,
|
||||
ray_function,
|
||||
args_vector, task_options, &return_ids))
|
||||
CCoreWorkerProcess.GetCoreWorker().SubmitActorTask(
|
||||
c_actor_id,
|
||||
ray_function,
|
||||
args_vector, task_options, &return_ids)
|
||||
|
||||
return VectorToObjectIDs(return_ids)
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
|
||||
const CRayFunction &function, const c_vector[CTaskArg] &args,
|
||||
const CActorCreationOptions &options,
|
||||
const c_string &extension_data, CActorID *actor_id)
|
||||
CRayStatus SubmitActorTask(
|
||||
void SubmitActorTask(
|
||||
const CActorID &actor_id, const CRayFunction &function,
|
||||
const c_vector[CTaskArg] &args, const CTaskOptions &options,
|
||||
c_vector[CObjectID] *return_ids)
|
||||
|
||||
Reference in New Issue
Block a user