mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 12:20:16 +08:00
[autoscaler] Run ray stop on cluster before tearing it down (#8922)
Co-authored-by: Allen Yin <allenyin@anyscale.io>
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user