[autoscaler] Add `--all-nodes` option to rsync-up (#7065)

* Add option to sync workers to rsync-up

* Format

* Rename --sync-workers to --all-nodes
This commit is contained in:
Maksim Smolin
2020-02-10 16:27:59 -08:00
committed by GitHub
parent ad1848b623
commit 4139e02f01
2 changed files with 72 additions and 25 deletions
+14 -2
View File
@@ -696,8 +696,20 @@ def rsync_down(cluster_config_file, source, target, cluster_name):
required=False,
type=str,
help="Override the configured cluster name.")
def rsync_up(cluster_config_file, source, target, cluster_name):
rsync(cluster_config_file, source, target, cluster_name, down=False)
@click.option(
"--all-nodes",
"-A",
is_flag=True,
required=False,
help="Upload to all nodes (workers and head).")
def rsync_up(cluster_config_file, source, target, cluster_name, all_nodes):
rsync(
cluster_config_file,
source,
target,
cluster_name,
down=False,
all_nodes=all_nodes)
@cli.command(context_settings={"ignore_unknown_options": True})