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:
Robert Nishihara
2018-07-12 12:00:00 -07:00
committed by Philipp Moritz
parent b316afeb43
commit 515da7721a
30 changed files with 282 additions and 407 deletions
+2 -2
View File
@@ -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)