fix(archive): filter P2037 too-many-connections as transient (BIT-33550) #328

Merged
tiago-neves merged 1 commits from fix/BIT-33550-archive-p2037-transient into main 2026-12-04 12:57:39 +00:00
1 Commits
Author SHA1 Message Date
nelson-baptista dc181533ab fix(archive): filter P2037 too-many-connections as transient (BIT-33550)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 8m8s
ci / typescript (pull_request) Successful in 15m6s
The rematch and takeOffFutureGames batch loops already stopped and
downgraded P1001/P2010 (unreachable) and 57P01 (admin shutdown) to info,
but P2037 (Too many database connections opened) fell through to log.warn
and paged the error loop for a transient pool-exhaustion blip.

Add isPrismaTooManyConnections checks to both catch blocks, mirroring the
BIT-33538 pattern in sports/service.ts: stop the batch and let the next
verifyAll retry once a slot frees.

Paperclip-Issue: BIT-33550
2026-12-04 12:18:09 +00:00