Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Change the gracefull shutdown signal

Thomas Kosmas28b64fc70454
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index 1ccf486ec..9d536acc6 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -94,8 +94,8 @@ const processJobInternal = async (token: string, job: Job) => {
let isShuttingDown = false;
-process.on("SIGINT", () => {
- console.log("Received SIGINT. Shutting down gracefully...");
+process.on("SIGTERM", () => {
+ console.log("Received SIGTERM. Shutting down gracefully...");
isShuttingDown = true;
});