Skip to content

Commit

Permalink
Update sky/backends/cloud_vm_ray_backend.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zongheng Yang <[email protected]>
  • Loading branch information
Michaelvll and concretevitamin authored Apr 22, 2024
1 parent e932498 commit c48a039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sky/backends/cloud_vm_ray_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ def get_or_fail(futures, pg) -> List[int]:
ready = []
# Keep invoking ray.wait if ready is empty. This is because
# ray.wait with timeout=None will only wait for 10**6 seconds,
# which will cause the task longer than 12 days returned before
# it is ready.
# which will cause tasks running for more than 12 days to return before
# becoming ready. (Such tasks are common in serving jobs.)
# Reference: https://github.com/ray-project/ray/blob/ray-2.9.3/python/ray/_private/worker.py#L2845-L2846
while not ready:
ready, unready = ray.wait(futures)
Expand Down

0 comments on commit c48a039

Please sign in to comment.