aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/index.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2026-02-08 02:11:51 +0000
committerGitHub <noreply@github.com>2026-02-08 02:11:51 +0000
commitbbd65fd6123f7d1a93d1f6a68f2b933d53ec3c23 (patch)
tree1f23b04b4ca8fbccdea2d61e7c2c0a8b991d87d1 /apps/workers/index.ts
parent7d53e2e458cba7153dea27c625ca1bb534952ddf (diff)
downloadkarakeep-bbd65fd6123f7d1a93d1f6a68f2b933d53ec3c23.tar.zst
feat: Add separate queue for import link crawling (#2452)
* feat: add separate queue for import link crawling --------- Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'apps/workers/index.ts')
-rw-r--r--apps/workers/index.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/workers/index.ts b/apps/workers/index.ts
index 931a505f..c7b9533d 100644
--- a/apps/workers/index.ts
+++ b/apps/workers/index.ts
@@ -10,6 +10,7 @@ import {
initTracing,
LinkCrawlerQueue,
loadAllPlugins,
+ LowPriorityCrawlerQueue,
OpenAIQueue,
prepareQueue,
RuleEngineQueue,
@@ -38,7 +39,11 @@ import { WebhookWorker } from "./workers/webhookWorker";
const workerBuilders = {
crawler: async () => {
await LinkCrawlerQueue.ensureInit();
- return CrawlerWorker.build();
+ return CrawlerWorker.build(LinkCrawlerQueue);
+ },
+ lowPriorityCrawler: async () => {
+ await LowPriorityCrawlerQueue.ensureInit();
+ return CrawlerWorker.build(LowPriorityCrawlerQueue);
},
inference: async () => {
await OpenAIQueue.ensureInit();