mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 05:52:54 +08:00
[autoscaler] Fix rsync file mounts (#10721)
This commit is contained in:
committed by
Barak Michener
parent
686c389562
commit
0592dcacba
@@ -959,10 +959,11 @@ def rsync(config_file: str,
|
||||
config = _bootstrap_config(config, no_config_cache=no_config_cache)
|
||||
|
||||
is_file_mount = False
|
||||
for remote_mount in config.get("file_mounts", {}).keys():
|
||||
if remote_mount in (source if down else target):
|
||||
is_file_mount = True
|
||||
break
|
||||
if source and target:
|
||||
for remote_mount in config.get("file_mounts", {}).keys():
|
||||
if (source if down else target).startswith(remote_mount):
|
||||
is_file_mount = True
|
||||
break
|
||||
|
||||
provider = get_node_provider(config["provider"], config["cluster_name"])
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user