mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 06:02:37 +08:00
only run cleanup if we've started ray in local mode and actually started the processes (#228)
This commit is contained in:
committed by
Philipp Moritz
parent
eee50416a1
commit
875b20e397
@@ -213,7 +213,8 @@ def connect(scheduler_address, objstore_address, worker_address, is_driver=False
|
||||
ray.lib.set_log_config(config.get_log_file_path("-".join(["worker", worker_address, "c++"]) + ".log"))
|
||||
|
||||
def disconnect(worker=global_worker):
|
||||
ray.lib.disconnect(worker.handle)
|
||||
if worker.handle is not None:
|
||||
ray.lib.disconnect(worker.handle)
|
||||
|
||||
def get(objref, worker=global_worker):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user