fix(sports): downgrade 57P03 database-shutting-down errors in syncEventSquads to info (BIT-32470) #274

Merged
spark merged 1 commits from fix/BIT-32470-sports-57p03-shutdown into main 2026-11-18 21:20:12 +00:00
Owner

Postgres surfaces a graceful shutdown as SQLSTATE 57P03 ("the database system is shutting down") inside a PrismaClientKnownRequestError. syncEventSquads already stops the batch and logs info for P1001 (unreachable) via isPrismaServerUnreachable, but 57P03 escaped the catch and rejected to the archive caller warn, paging the error loop for a transient blip.

Extends isPrismaServerUnreachable to also match 57P03 / "the database system is shutting down" so the existing stop-and-retry-next-run path applies.

Paperclip-Issue: BIT-32470

Postgres surfaces a graceful shutdown as SQLSTATE 57P03 ("the database system is shutting down") inside a PrismaClientKnownRequestError. syncEventSquads already stops the batch and logs info for P1001 (unreachable) via isPrismaServerUnreachable, but 57P03 escaped the catch and rejected to the archive caller warn, paging the error loop for a transient blip. Extends isPrismaServerUnreachable to also match 57P03 / "the database system is shutting down" so the existing stop-and-retry-next-run path applies. Paperclip-Issue: BIT-32470
spark added 1 commit 2026-11-18 21:09:44 +00:00
fix(sports): downgrade 57P03 database-shutting-down errors in syncEventSquads to info (BIT-32470)
ci / rust (pull_request) Successful in 4m26s
ci / typescript (pull_request) Successful in 9m40s
49d3687973
Postgres surfaces a graceful shutdown as SQLSTATE 57P03 ("the database system
is shutting down") wrapped inside a PrismaClientKnownRequestError message.
syncEventSquads already stops the batch and logs info for P1001 (server
unreachable) via isPrismaServerUnreachable, but 57P03 escaped the catch and
rejected to the archive caller's warn, paging the error loop for a transient
blip. Extend isPrismaServerUnreachable to also match 57P03 / "the database
system is shutting down" so the same stop-and-retry-next-run path applies.

Paperclip-Issue: BIT-32470
spark merged commit 6f57f8a06c into main 2026-11-18 21:20:12 +00:00
Sign in to join this conversation.