[Projects] Delete pods associated with the project when running ray session stop (#6787)

This commit is contained in:
Qstar
2020-01-18 02:42:30 +08:00
committed by Philipp Moritz
parent 9f96091aef
commit 0f3205af0b
+4
View File
@@ -326,6 +326,10 @@ def attach(screen, tmux):
@click.option("--name", help="Name of the session to stop", default=None)
def stop(name):
project_definition = load_project_or_throw()
if not name:
name = project_definition.config["name"]
teardown_cluster(
project_definition.cluster_yaml(),
yes=True,