mirror of
https://github.com/wassname/ray.git
synced 2026-07-28 11:25:04 +08:00
Change ray.worker.cleanup -> ray.shutdown and improve API documentation. (#2374)
* Change ray.worker.cleanup -> ray.shutdown and improve API documentation. * Deprecate ray.worker.cleanup() gracefully. * Fix linting
This commit is contained in:
committed by
Philipp Moritz
parent
b316afeb43
commit
515da7721a
@@ -40,7 +40,7 @@ class MultiNodeTest(unittest.TestCase):
|
||||
self.redis_address = redis_address.split("\"")[0]
|
||||
|
||||
def tearDown(self):
|
||||
ray.worker.cleanup()
|
||||
ray.shutdown()
|
||||
# Kill the Ray cluster.
|
||||
subprocess.Popen(["ray", "stop"]).wait()
|
||||
|
||||
@@ -281,7 +281,7 @@ class StartRayScriptTest(unittest.TestCase):
|
||||
|
||||
class MiscellaneousTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
ray.worker.cleanup()
|
||||
ray.shutdown()
|
||||
|
||||
def testConnectingInLocalCase(self):
|
||||
address_info = ray.init(num_cpus=0)
|
||||
|
||||
Reference in New Issue
Block a user