Repository navigation
fix(prowlarr): give manual search a 90 s budget; slow answers don't open the breaker - #128
Open
davidcoulson wants to merge 1 commit into
Open
davidcoulson wants to merge 1 commit into
davidcoulson wants to merge 1 commit into
Conversation
…pen the breaker Prowlarr search fans out to every indexer (7–20 s with ~16 indexers), but used the default 8 s timeout: results came back empty, and the read timeout marked Prowlarr down for every request in the breaker window. Mirror the Shoshuo#41 rule from RadarrClient: only connect-level failures open the breaker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What does this PR do?
Prowlarr manual search returned no results, and showed Prowlarr as down everywhere, whenever indexers were slow. A search fans out to every enabled indexer and only answers once the slowest one replies. With a dozen indexers that takes 7–20 s, but the search went through the client's default 8 s timeout, so:
This applies the #41 rule from
RadarrClienttoProwlarrClient:ProwlarrClient::SEARCH_TIMEOUT). Every other Prowlarr call keeps the 8 s default.Type of change
Definition of Done checklist
console.log,dd(),var_dump,TODO,FIXMEleftoverProwlarrClientTimeoutTest: a slow search uses the search budget, and a read timeout doesn't open the breaker while a connect failure does)make checkpasses (PHP lint, Twig lint,lint:container, PHPUnit 1268 tests, all passing)CHANGELOG.mdupdated under[Unreleased]README.md: no user-facing behaviour change beyond the fixNotes for the reviewer
mainon its own.🤖 Generated with Claude Code