diff --git a/python/ray/projects/scripts.py b/python/ray/projects/scripts.py index 77374e0f4..2e6d4d8b0 100644 --- a/python/ray/projects/scripts.py +++ b/python/ray/projects/scripts.py @@ -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,