ai-code-battle/cmd
jedarden 68b786416a fix(db): add LIMIT to fetchRecentMatchIds query to prevent OOMKill
The query in fetchRecentMatchIDs was fetching all completed matches from
the last 24 hours without a LIMIT clause. In a high-traffic environment
with thousands of matches per day, this would cause the pod to run out
of memory and be OOMKilled.

This fix adds LIMIT 5000 to cap the number of recent matches fetched,
preventing unbounded memory growth while still providing sufficient
data for warm asset bundling.

Fixes acb-index-builder CrashLoopBackOff (4713 restarts over 45 days).
2026-06-25 01:40:24 -04:00
..
acb-api feat(api): add GET /api/status/{bot_id} endpoint per plan §8.2 2026-05-25 16:53:03 -04:00
acb-enrichment fix(dockerfile): correct golang version from 1.24 to 1.25 2026-06-04 08:52:03 -04:00
acb-evolver feat(evolver): add C# language support 2026-06-17 05:08:19 -04:00
acb-index-builder fix(db): add LIMIT to fetchRecentMatchIds query to prevent OOMKill 2026-06-25 01:40:24 -04:00
acb-local Implement SiegeBot: spawn-lockout strategy 2026-06-17 01:02:01 -04:00
acb-map-evolver style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-mapgen fix(mapgen): align spawn radius comment with actual implementation (30% vs 15%) 2026-05-26 19:28:49 -04:00
acb-maps-loader style: format Go files with gofmt 2026-05-25 15:33:38 -04:00
acb-matchmaker style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-wasm style: apply gofmt alignment fixes across codebase 2026-05-24 10:40:33 -04:00
acb-worker feat(engine): add pre-generated map loading from map library 2026-05-25 14:14:27 -04:00