diff --git a/python/ray/scripts/scripts.py b/python/ray/scripts/scripts.py index 606183053..5b6e69bcf 100644 --- a/python/ray/scripts/scripts.py +++ b/python/ray/scripts/scripts.py @@ -1034,6 +1034,14 @@ def rsync_up(cluster_config_file, source, target, cluster_name, all_nodes, """Upload specific files to a Ray cluster.""" cli_logger.configure(log_style, log_color, verbose) + if all_nodes: + cli_logger.warning( + "WARNING: the `all_nodes` option is deprecated and will be " + "removed in the future. " + "Rsync to worker nodes is not reliable since workers may be " + "added during autoscaling. Please use the `file_mounts` " + "feature instead for consistent file sync in autoscaling clusters") + rsync( cluster_config_file, source,