Files
yellowjacket/backend/explore
yonlu 0f2a82256c fix: cap slow-path search at 3s to prevent 20s+ searches
The cross-referencing phase browses 3 artist discographies via MB API.
When the background indexer is also making MB requests, 429 retries
with exponential backoff can stack up to 20+ seconds.

Added a 3s context.WithTimeout covering both LB popularity and
cross-referencing. If LB popularity exhausts the budget, cross-ref
is skipped entirely. If cross-ref is running when the deadline hits,
the BrowseReleaseGroups calls are cancelled mid-flight.

Worst case search time is now ~7s (4s MB search + 3s slow path)
instead of unbounded.
2026-03-29 16:34:02 -04:00
..