The rematch and takeOffFutureGames batch loops in archive/service.ts already stopped and downgraded P1001/P2010 (unreachable) and 57P01 (admin shutdown) to log.info, but P2037 (Too many database connections opened) fell through to log.warn and paged the error loop for a transient pool-exhaustion blip.
Fix
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.
Tests
rematch P2037 → logs at info, stops batch, no warn
takeOffFutureGames P2037 → logs at info, stops batch, no warn
All 13 archive service tests pass
Paperclip-Issue: BIT-33550
## Summary
The `rematch` and `takeOffFutureGames` batch loops in `archive/service.ts` already stopped and downgraded P1001/P2010 (unreachable) and 57P01 (admin shutdown) to `log.info`, but **P2037** (Too many database connections opened) fell through to `log.warn` and paged the error loop for a transient pool-exhaustion blip.
## Fix
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.
## Tests
- `rematch` P2037 → logs at info, stops batch, no warn
- `takeOffFutureGames` P2037 → logs at info, stops batch, no warn
- All 13 archive service tests pass
Paperclip-Issue: BIT-33550
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
The
rematchandtakeOffFutureGamesbatch loops inarchive/service.tsalready stopped and downgraded P1001/P2010 (unreachable) and 57P01 (admin shutdown) tolog.info, but P2037 (Too many database connections opened) fell through tolog.warnand paged the error loop for a transient pool-exhaustion blip.Fix
Add
isPrismaTooManyConnectionschecks to both catch blocks, mirroring the BIT-33538 pattern insports/service.ts: stop the batch and let the nextverifyAllretry once a slot frees.Tests
rematchP2037 → logs at info, stops batch, no warntakeOffFutureGamesP2037 → logs at info, stops batch, no warnPaperclip-Issue: BIT-33550