Avoid search gateway timeouts
build-push / docker (push) Successful in 4m16s

This commit is contained in:
AI Assistant
2026-03-16 12:53:39 +09:00
parent c0830b5fde
commit cce4387092
3 changed files with 31 additions and 3 deletions
+11
View File
@@ -255,6 +255,17 @@
- backend debug broadcasts
## Recent Change Log
- Date: `2026-03-16`
- What changed:
- Added a search-time budget for Gemini evaluation so the API can return partial reviewed results before reverse-proxy timeout instead of surfacing `504 Gateway Time-out`.
- Supplemental exploration now only runs when there is enough remaining request budget.
- Why it changed:
- Fully sequential enrichment and Gemini evaluation improved coverage but made the endpoint vulnerable to upstream proxy timeouts.
- How it was verified:
- code-path inspection of deadline-aware Gemini evaluation and handler warning flow
- What is still risky or incomplete:
- Very slow upstream pages or repeated Gemini retries can still reduce final result count because the handler now prioritizes responding before proxy timeout.
- Date: `2026-03-16`
- What changed:
- Search enrichment now runs across the full result set sequentially instead of only enriching a capped top subset in parallel.