mirror of
https://github.com/wassname/ray.git
synced 2026-07-06 05:16:30 +08:00
Fix global_state not disconnected after ray.shutdown (#4354)
This commit is contained in:
committed by
Robert Nishihara
parent
2a046116ce
commit
3b141b26cd
@@ -1566,6 +1566,9 @@ def shutdown(exiting_interpreter=False):
|
||||
|
||||
disconnect()
|
||||
|
||||
# Disconnect global state from GCS.
|
||||
global_state.disconnect()
|
||||
|
||||
# Shut down the Ray processes.
|
||||
global _global_node
|
||||
if _global_node is not None:
|
||||
@@ -2054,7 +2057,7 @@ def connect(info,
|
||||
|
||||
|
||||
def disconnect():
|
||||
"""Disconnect this worker from the scheduler and object store."""
|
||||
"""Disconnect this worker from the raylet and object store."""
|
||||
# Reset the list of cached remote functions and actors so that if more
|
||||
# remote functions or actors are defined and then connect is called again,
|
||||
# the remote functions will be exported. This is mostly relevant for the
|
||||
|
||||
Reference in New Issue
Block a user