Files
photoreport/apps/api/src
paula-alves 50699fa675
ci / rust (pull_request) Successful in 3m49s
ci / typescript (pull_request) Successful in 9m21s
fix(autopilot): downgrade 57P01 admin-shutdown poll errors to info so they stop paging the error loop (BIT-32448)
A Postgres restart or `pg_terminate_backend` (error 57P01) takes the autopilot's pooled client mid-`$queryRaw`. Prisma surfaces it as P2010 wrapping the server message, and the catch in `AutopilotWorker.start` logged it at warn as "autopilot: poll failed" — which fed the error loop on every tick during a DB restart. The next tick re-claims a fresh client, so this is a transient blip: detect 57P01 and log at info instead, keeping the warn path for real poll failures.

Paperclip-Issue: BIT-32448
Paperclip-Cluster: 5019795ae39d
2026-11-18 17:42:15 +00:00
..