[autoscaler] Run ray stop on cluster before tearing it down (#8922)

Co-authored-by: Allen Yin <allenyin@anyscale.io>
This commit is contained in:
Allen
2020-06-20 17:02:34 -07:00
committed by GitHub
parent 981f67bfb0
commit 8fa584a445
+4
View File
@@ -79,6 +79,10 @@ def teardown_cluster(config_file, yes, workers_only, override_cluster_name,
confirm("This will destroy your cluster", yes)
if not workers_only:
exec_cluster(config_file, "ray stop", False, False, False, False,
False, override_cluster_name, None, False)
provider = get_node_provider(config["provider"], config["cluster_name"])
try: