Overview
main.ts does not enable shutdown hooks. On deploy or restart, in-flight HTTP requests and running Bull jobs are killed mid-execution, which can leave payments and invoices half-processed.
Tasks
Acceptance Criteria
Notes for Contributors
Comment below to be assigned.
Overview
main.tsdoes not enable shutdown hooks. On deploy or restart, in-flight HTTP requests and running Bull jobs are killed mid-execution, which can leave payments and invoices half-processed.Tasks
app.enableShutdownHooks()and handleSIGTERM/SIGINT.OnModuleDestroyin queue-consuming modules to let active jobs finish and close the Bull connection cleanly.Acceptance Criteria
Notes for Contributors
Comment below to be assigned.