fix(worker): graceful BullMQ worker shutdown (stop Missing-lock on deploy) #7
Reference in New Issue
Block a user
Delete Branch "fix/worker-graceful-shutdown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Workers were never closed on SIGTERM, so deploys killed them mid-flight and the next container saw stalled jobs -> Missing-lock churn + duplicate nightly-refresh. shutdown now closes all workers first (locks released, bounded 15s); nightly gets the same 5min lock as the other queues. tsc clean; smoke 30/30.