mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 19:36:07 +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;
|
let isShuttingDown = false;
|
||||||
|
|
||||||
|
process.on("SIGINT", () => {
|
||||||
|
console.log("Received SIGTERM. Shutting down gracefully...");
|
||||||
|
isShuttingDown = true;
|
||||||
|
});
|
||||||
|
|
||||||
process.on("SIGTERM", () => {
|
process.on("SIGTERM", () => {
|
||||||
console.log("Received SIGTERM. Shutting down gracefully...");
|
console.log("Received SIGTERM. Shutting down gracefully...");
|
||||||
isShuttingDown = true;
|
isShuttingDown = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user