Change the gracefull shutdown signal
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user