mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 12:28:10 +08:00
[autoscaler]: Kill workers if the monitor raises an exception (#3977)
Co-authored-by: CJosephides <cjosephides@gmail.com>
This commit is contained in:
committed by
Edward Oakes
parent
cfbde39ba8
commit
e516c50745
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user