[core worker] Python core worker object interface (#5272)

This commit is contained in:
Edward Oakes
2019-09-12 23:07:46 -07:00
committed by Eric Liang
parent 1b880191b0
commit 07c4c6367a
49 changed files with 1157 additions and 552 deletions
+2 -3
View File
@@ -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()