From ef2233baabab422bc6c887c0648e4f2a92077ddc Mon Sep 17 00:00:00 2001 From: Romil Bhardwaj Date: Sun, 24 Nov 2024 11:11:37 -0800 Subject: [PATCH] [Storage] Call `sync_file_mounts` when either rsync or storage file_mounts are specified (#4317) do file mounts if storage is specified --- sky/execution.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sky/execution.py b/sky/execution.py index 90eb44e069f..963e0356753 100644 --- a/sky/execution.py +++ b/sky/execution.py @@ -305,7 +305,8 @@ def _execute( do_workdir = (Stage.SYNC_WORKDIR in stages and not dryrun and task.workdir is not None) do_file_mounts = (Stage.SYNC_FILE_MOUNTS in stages and not dryrun and - task.file_mounts is not None) + (task.file_mounts is not None or + task.storage_mounts is not None)) if do_workdir or do_file_mounts: logger.info(ux_utils.starting_message('Mounting files.'))