mirror of
https://github.com/wassname/ray.git
synced 2026-07-09 17:47:27 +08:00
[core worker] Python core worker object interface (#5272)
This commit is contained in:
+2
-3
@@ -862,10 +862,9 @@ def exit_actor():
|
||||
"""
|
||||
worker = ray.worker.global_worker
|
||||
if worker.mode == ray.WORKER_MODE and not worker.actor_id.is_nil():
|
||||
# Disconnect the worker from the raylet. The point of
|
||||
# this is so that when the worker kills itself below, the
|
||||
# Intentionally disconnect the core worker from the raylet so the
|
||||
# raylet won't push an error message to the driver.
|
||||
worker.raylet_client.disconnect()
|
||||
worker.core_worker.disconnect()
|
||||
ray.disconnect()
|
||||
# Disconnect global state from GCS.
|
||||
ray.state.state.disconnect()
|
||||
|
||||
Reference in New Issue
Block a user