diff --git a/server/src/worker.ts b/server/src/worker.ts index c75104d1..3afb39c5 100644 --- a/server/src/worker.ts +++ b/server/src/worker.ts @@ -47,4 +47,9 @@ async function jobCounts() { jobCounts(); +process.on('SIGINT', () => { + console.log('Worker shutting down...'); + process.exit(); +}); + export { workflowQueue, worker }; \ No newline at end of file