mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 11:27:06 +08:00
Fix verbose shutdown error and test_env_with_subprocesses (#6614)
This commit is contained in:
@@ -787,11 +787,6 @@ cdef class CoreWorker:
|
||||
node_ip_address.encode("utf-8"), node_manager_port,
|
||||
task_execution_handler, check_signals, True))
|
||||
|
||||
def disconnect(self):
|
||||
self.destory_event_loop_if_exists()
|
||||
with nogil:
|
||||
self.core_worker.get().Disconnect()
|
||||
|
||||
def run_task_loop(self):
|
||||
with nogil:
|
||||
self.core_worker.get().StartExecutingTasks()
|
||||
|
||||
@@ -819,7 +819,6 @@ def exit_actor():
|
||||
if worker.mode == ray.WORKER_MODE and not worker.actor_id.is_nil():
|
||||
# Intentionally disconnect the core worker from the raylet so the
|
||||
# raylet won't push an error message to the driver.
|
||||
worker.core_worker.disconnect()
|
||||
ray.disconnect()
|
||||
# Disconnect global state from GCS.
|
||||
ray.state.state.disconnect()
|
||||
|
||||
@@ -81,7 +81,6 @@ cdef extern from "ray/core_worker/core_worker.h" nogil:
|
||||
c_vector[shared_ptr[CRayObject]] *returns) nogil,
|
||||
CRayStatus() nogil,
|
||||
c_bool ref_counting_enabled)
|
||||
void Disconnect()
|
||||
CWorkerType &GetWorkerType()
|
||||
CLanguage &GetLanguage()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user