The rematch loop already stopped and downgraded P1001/unreachable-DB errors to info (BIT-32462), but takeOffFutureGames had the same warn-per-folder pattern that pages the error loop for transient blips.
The error in BIT-32469 was a P2010 raw-query wrapper around Can't reach database server at 127.0.0.1:5432, reported from release 902ebda (before BIT-32462 deployed).
Changes
Add isPrismaServerUnreachable check to takeOffFutureGames catch: stop the batch and log at info, same as rematch
Add pg.test.ts case for P2010 wrapping Can't reach database server
Add rematch test variant for the P2010 raw-query wrapper
Add takeOffFutureGames test for unreachable-DB stop+downgrade
## Context
The rematch loop already stopped and downgraded P1001/unreachable-DB errors to info (BIT-32462), but `takeOffFutureGames` had the same warn-per-folder pattern that pages the error loop for transient blips.
The error in BIT-32469 was a P2010 raw-query wrapper around `Can't reach database server at 127.0.0.1:5432`, reported from release `902ebda` (before BIT-32462 deployed).
## Changes
- Add `isPrismaServerUnreachable` check to `takeOffFutureGames` catch: stop the batch and log at info, same as rematch
- Add `pg.test.ts` case for P2010 wrapping `Can't reach database server`
- Add rematch test variant for the P2010 raw-query wrapper
- Add `takeOffFutureGames` test for unreachable-DB stop+downgrade
Paperclip-Issue: BIT-32469
Paperclip-Cluster: 29b596ed90d7
The rematch loop already stopped and downgraded P1001/unreachable-DB errors
to info (BIT-32462), but takeOffFutureGames had the same warn-per-folder
pattern that pages the error loop for transient blips. The error in BIT-32469
was a P2010 raw-query wrapper around 'Can't reach database server' reported
from release 902ebda (before BIT-32462 deployed).
- Add isPrismaServerUnreachable check to takeOffFutureGames catch: stop the
batch and log at info, same as rematch
- Add pg.test.ts case for P2010 wrapping 'Can't reach database server'
- Add rematch test variant for the P2010 raw-query wrapper
- Add takeOffFutureGames test for unreachable-DB stop+downgrade
Paperclip-Issue: BIT-32469
Paperclip-Cluster: 29b596ed90d7
spark
merged commit 50f813b931 into main2026-11-18 21:54:54 +00:00
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.
Context
The rematch loop already stopped and downgraded P1001/unreachable-DB errors to info (BIT-32462), but
takeOffFutureGameshad the same warn-per-folder pattern that pages the error loop for transient blips.The error in BIT-32469 was a P2010 raw-query wrapper around
Can't reach database server at 127.0.0.1:5432, reported from release902ebda(before BIT-32462 deployed).Changes
isPrismaServerUnreachablecheck totakeOffFutureGamescatch: stop the batch and log at info, same as rematchpg.test.tscase for P2010 wrappingCan't reach database servertakeOffFutureGamestest for unreachable-DB stop+downgradePaperclip-Issue: BIT-32469
Paperclip-Cluster: 29b596ed90d7