Conversation
The workload route runs at the 10s default, so any turn slower than about 15s returns a 504 the caller cannot safely retry: the actor received the turn and is still working, so retrying runs it twice. Uncomment the override already present in the manifest. The drain sequence sizes itself from the constant rather than from this flag, so shutdown timing and the pod grace period are unchanged.
Maya Wang (mayawang)
requested review from
Lior Lieberman (LiorLieberman) and
Anna Pendleton (annapendleton)
and removed request for
Anna Pendleton (annapendleton)
September 8, 2026 21:34
Collaborator
|
Please make sure this is submitted into main branch prior to submission in release-0.1 we want to avoid divergence. |
Collaborator
Author
|
Closing this. Main first is right, and if the mitigation for release-0.1 is documenting the manifest line rather than moving the default here, this PR is the wrong shape for it. #1529 carries the main-side question. If we do end up backporting after that lands, the cherry-pick applies clean onto this branch and the router tests pass, I checked already. |
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.
release-0.1 ships the workload route at the 10s default, so any turn slower than about 15s (10s route plus the 5s parking budget in front of it) returns
504 upstream request timeout. The caller cannot safely retry: the actor received the turn and is still working, so a retry runs it twice.This uncomments the
--route-timeout=5mline already present in the manifest, directly under the comment describing the trap.Not a cherry-pick of #1529. That PR raises the constant on
mainand removes this line as redundant. Here the constant stays at 10s, so the manifest line is the fix.No other timing moves. On this branch
drainTimeout()derives from the constant and deliberately ignores--route-timeout, so the drain sequence andterminationGracePeriodSecondsare unchanged. The route idle timeout resolves to 5m either way.Does not close #1525. The other half, where an abandoned answer can surface to the next caller, is unaffected by a longer ceiling.