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
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 main2026-11-18 21:20:12 +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.
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") 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