[autoscaler]: Kill workers if the monitor raises an exception (#3977)

Co-authored-by: CJosephides <cjosephides@gmail.com>
This commit is contained in:
Daniel Edgecumbe
2020-01-23 20:12:52 +00:00
committed by Edward Oakes
parent cfbde39ba8
commit e516c50745
3 changed files with 67 additions and 11 deletions
+9 -2
View File
@@ -531,6 +531,11 @@ def create_or_update(cluster_config_file, min_workers, max_workers, no_restart,
is_flag=True,
default=False,
help="Only destroy the workers.")
@click.option(
"--keep-min-workers",
is_flag=True,
default=False,
help="Retain the minimal amount of workers specified in the config.")
@click.option(
"--yes",
"-y",
@@ -543,9 +548,11 @@ def create_or_update(cluster_config_file, min_workers, max_workers, no_restart,
required=False,
type=str,
help="Override the configured cluster name.")
def teardown(cluster_config_file, yes, workers_only, cluster_name):
def teardown(cluster_config_file, yes, workers_only, cluster_name,
keep_min_workers):
"""Tear down the Ray cluster."""
teardown_cluster(cluster_config_file, yes, workers_only, cluster_name)
teardown_cluster(cluster_config_file, yes, workers_only, cluster_name,
keep_min_workers)
@cli.command()