Skip to content

Commit

Permalink
Update sky/cli.py
Browse files Browse the repository at this point in the history
Co-authored-by: Zhanghao Wu <[email protected]>
  • Loading branch information
cblmemo and Michaelvll authored Dec 13, 2023
1 parent 5607095 commit 991d45b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sky/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4291,6 +4291,8 @@ def serve_up(
raise ValueError(f'Port {service_port_str!r} is not a valid port '
'number. Please specify a single port instead. '
f'Got: {service_port_str!r}')
# We request all the replicas using the same port for now, but it should be
# fine to allow different repilcas to use different ports in the future.
resource_port = int(service_port_str)
if service_port is None:
service_port = resource_port
Expand Down

0 comments on commit 991d45b

Please sign in to comment.