Repository navigation
fix(queen): say why the server hung; split 429 from 503 - #497
Merged
Merged
Conversation
… ends it Measured 2026-09-21 11:19: the server logged nothing for thirteen minutes and was killed with no record of what it was doing. At the 3rd, middle and last missed probe the supervisor now prints, from /proc, the server's state, cpu seconds, threads, rss and wchan, and every descendant process with its age, cpu and command line - which separates a CPU loop from a wait on a child from memory pressure. Verified in python:3.12-slim against a fake server with a sleeping and a spinning child. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
503 is the model overloaded (switching models helps); 429 is one key over
its rate (fewer lanes per key helps). The ranking counted both as one
failure, which hid which lever to pull. The retry wrapper now names the
cause ('429', '503', 'stream', 'threw') and /queen/status shows refusals
by cause per model.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
❌ Tests failed — 11/2436 failed
Failed tests
|
dmitrii-f-t27
pushed a commit
to dmitrii-f-t27/BrowserOS
that referenced
this pull request
Oct 10, 2026
fix(queen): say why the server hung; split 429 from 503
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.
Why
What
docker-entrypoint.sh: at the 3rd, middle and last missed probe, print from /proc the server's state/cpu/threads/rss/wchan and every descendant with age, cpu and command line. Verified in python:3.12-slim against a fake server (sleeping + spinning child).overload-retry-fetchnames the refusal cause;/queen/statusmodels.ranking[].refusalscounts by cause.Tests
26 pass (ranking + retry); tsc clean.
🤖 Generated with Claude Code