forked from skypilot-org/skypilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error handling in service update process (skypilot-org#4034)
* Fix error handling in service update process Fixes skypilot-org#4030 Address error handling inconsistency in service update process. * **sky/serve/controller.py** - Modify `/controller/update_service` endpoint to return appropriate HTTP status codes. - Return 400 for client errors and 500 for server errors. - Use `responses.JSONResponse` for returning responses. * **sky/serve/serve_utils.py** - Update `update_service_encoded` function to handle different status codes. - Raise exceptions based on the response body for 400 and 500 status codes. * **sky/utils/subprocess_utils.py** - Add `stream_logs` parameter in the comment to reflect the code. * format * apply to load_balancer_sync for consistency
- Loading branch information
Showing
3 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters