mirror of
https://github.com/wassname/ray.git
synced 2026-07-05 16:44:54 +08:00
Remove CoreWorkerTaskExecutionInterface (#6009)
This commit is contained in:
@@ -665,7 +665,7 @@ cdef class CoreWorker:
|
||||
|
||||
def run_task_loop(self):
|
||||
with nogil:
|
||||
self.core_worker.get().Execution().Run()
|
||||
self.core_worker.get().StartExecutingTasks()
|
||||
|
||||
def get_current_task_id(self):
|
||||
return TaskID(self.core_worker.get().GetCurrentTaskId().Binary())
|
||||
|
||||
@@ -35,11 +35,6 @@ from ray.includes.libraylet cimport CRayletClient
|
||||
ctypedef unordered_map[c_string, c_vector[pair[int64_t, double]]] \
|
||||
ResourceMappingType
|
||||
|
||||
cdef extern from "ray/core_worker/task_execution.h" namespace "ray" nogil:
|
||||
cdef cppclass CTaskExecutionInterface "CoreWorkerTaskExecutionInterface":
|
||||
void Run()
|
||||
void Stop()
|
||||
|
||||
cdef extern from "ray/core_worker/profiling.h" nogil:
|
||||
cdef cppclass CProfiler "ray::worker::Profiler":
|
||||
void Start()
|
||||
@@ -95,7 +90,8 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
|
||||
CWorkerType &GetWorkerType()
|
||||
CLanguage &GetLanguage()
|
||||
CObjectInterface &Objects()
|
||||
CTaskExecutionInterface &Execution()
|
||||
|
||||
void StartExecutingTasks()
|
||||
|
||||
CRayStatus SubmitTask(
|
||||
const CRayFunction &function, const c_vector[CTaskArg] &args,
|
||||
|
||||
@@ -35,7 +35,8 @@ cdef class ProfileEvent:
|
||||
elif self.extra_data is not None:
|
||||
extra_data = self.extra_data
|
||||
|
||||
self.inner.get().SetExtraData(json.dumps(extra_data).encode("ascii") if extra_data else b"{}")
|
||||
self.inner.get().SetExtraData(
|
||||
json.dumps(extra_data).encode("ascii") if extra_data else b"{}")
|
||||
|
||||
# Deleting the CProfileEvent will add it to a queue to be pushed to
|
||||
# the driver.
|
||||
|
||||
Reference in New Issue
Block a user