Skip to content

Commit

Permalink
[Storage] Call sync_file_mounts when either rsync or storage file_m…
Browse files Browse the repository at this point in the history
…ounts are specified (#4317)

do file mounts if storage is specified
  • Loading branch information
romilbhardwaj authored Nov 24, 2024
1 parent 44625e0 commit ef2233b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sky/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'))

Expand Down

0 comments on commit ef2233b

Please sign in to comment.