Change the gracefull shutdown signal

This commit is contained in:
Thomas Kosmas 2024-10-04 00:40:09 +03:00
parent 497ac3328b
commit 28b64fc704

View File

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