Skip to content

Commit

Permalink
Merge branch 'continuous-sync-alpha-1' of https://github.com/landscap…
Browse files Browse the repository at this point in the history
…epainter/skypilot into continuous-sync-alpha-1

merge
  • Loading branch information
landscapepainter committed Sep 16, 2023
2 parents ec11a15 + 95bc037 commit 785e770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sky/backends/backend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2871,7 +2871,7 @@ def check_stale_runtime_on_remote(returncode: int, stderr: str,


def wait_and_terminate_csync(cluster_name: str) -> None:
""" Terminatese all the CSYNC process running in each node after
"""Terminatese all the CSYNC process running in each node after
waiting for the sync process launched by CSYNC complete.
Args:
Expand Down
5 changes: 1 addition & 4 deletions sky/data/skystorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ def update_interval(interval_seconds: int, elapsed_time: int):
wait before the next sync operation.
"""
diff = interval_seconds - elapsed_time
if diff <= 0:
return 0
else:
return diff
return max(0, diff)


def get_s3_upload_cmd(src_path: str, dst: str, num_threads: int, delete: bool,
Expand Down

0 comments on commit 785e770

Please sign in to comment.