fix(gateway): return 503 for orchestrator rejections#1340
Open
Bhanudahiyaa wants to merge 1 commit intomofa-org:mainfrom
Open
fix(gateway): return 503 for orchestrator rejections#1340Bhanudahiyaa wants to merge 1 commit intomofa-org:mainfrom
Bhanudahiyaa wants to merge 1 commit intomofa-org:mainfrom
Conversation
0050d5b to
ac7dd98
Compare
Contributor
Author
|
This PR corrects the gateway’s handling of orchestrator rejections by returning a 503 Service Unavailable instead of a Key updates
RationaleRejections represent capacity/admission failures, not successful inference. Returning Would appreciate confirmation that 503 is the appropriate status for this case, or if a different mapping is preferred. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Return 503 Service Unavailable with a structured GatewayErrorBody when orchestrator routing returns RoutedBackend::Rejected, instead of returning a 200 completion payload.
Motivation
The OpenAI-compatible contract should distinguish successful inference from backend admission failure. Returning 200 on rejection causes client misclassification and unreliable
recovery behavior.
fixes: #1339
Changes
Design / Tradeoffs
Testing
Executed:
———