Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(queue-worker): lower pressure by doubling lock duration
Gergő Móricz3b25432454e1
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.tsindex 997e54b77..8e2a403f2 100644--- a/apps/api/src/services/queue-worker.ts+++ b/apps/api/src/services/queue-worker.ts@@ -343,8 +343,8 @@ const separateWorkerFun = (const worker = new Worker(queue.name, path, {connection: createRedisConnection(),- lockDuration: 30 * 1000, // 30 seconds- stalledInterval: 30 * 1000, // 30 seconds+ lockDuration: 60 * 1000, // 60 seconds+ stalledInterval: 60 * 1000, // 60 secondsmaxStalledCount: 10, // 10 timesconcurrency: 10,useWorkerThreads: true,@@ -367,8 +367,8 @@ const workerFun = async (const worker = new Worker(queue.name, null, {connection: redisConnection,- lockDuration: 30 * 1000, // 30 seconds- stalledInterval: 30 * 1000, // 30 seconds+ lockDuration: 60 * 1000, // 60 seconds+ stalledInterval: 60 * 1000, // 60 secondsmaxStalledCount: 10, // 10 times});