Skip to content

Commit

Permalink
Raises error when user tries to update an existing service to Rolling…
Browse files Browse the repository at this point in the history
… mode. #4066
  • Loading branch information
KrishivPiduri committed Oct 14, 2024
1 parent 340f384 commit 501603e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sky/serve/serve_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,4 +963,7 @@ def update_service(cls, service_name: str, version: int, mode: str) -> str:
f'{version}, **mode_kwargs)',
'print(msg, end="", flush=True)',
]
if mode == UpdateMode.ROLLING:
raise exceptions.NotSupportedError(
f'Rolling updates not supported on {service_name} service')
return cls._build(code)

0 comments on commit 501603e

Please sign in to comment.