💻 Dev10 min
SIGTERM Had Two Owners: Why Our Shutdown Hooks Ran Twice
Every deploy dropped a Prisma P2028 error into Sentry. I went in to fix the shutdown order and found something bigger: NestJS's enableShutdownHooks and our graceful-shutdown library were both catching SIGTERM, so the shutdown hooks were firing twice on every single restart.
- #Backend
- #NestJS
- #Shutdown Sequence
- #Incident Response
- #BullMQ