mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 13:40:40 +08:00
Update queue-worker.ts
This commit is contained in:
parent
75658c58a2
commit
93657f6a44
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user