Update queue-worker.ts

This commit is contained in:
Nicolas 2024-10-03 18:44:40 -03:00
parent 75658c58a2
commit 93657f6a44

View File

@ -94,6 +94,11 @@ const processJobInternal = async (token: string, job: Job) => {
let isShuttingDown = false;
process.on("SIGINT", () => {
console.log("Received SIGTERM. Shutting down gracefully...");
isShuttingDown = true;
});
process.on("SIGTERM", () => {
console.log("Received SIGTERM. Shutting down gracefully...");
isShuttingDown = true;