aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc/routers/bookmarks.ts
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2026-02-08 01:40:24 +0000
committerMohamed Bassem <me@mbassem.com>2026-02-08 01:40:24 +0000
commit7d53e2e458cba7153dea27c625ca1bb534952ddf (patch)
treed1c4652f6821eac67b74d7fbfcde7803d3195603 /packages/trpc/routers/bookmarks.ts
parentb2640803745636e87e42f5460759093f49df9d04 (diff)
downloadkarakeep-7d53e2e458cba7153dea27c625ca1bb534952ddf.tar.zst
fix: lower the priority of recrawling
Diffstat (limited to 'packages/trpc/routers/bookmarks.ts')
-rw-r--r--packages/trpc/routers/bookmarks.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.ts
index 59c93581..0bbf4fb7 100644
--- a/packages/trpc/routers/bookmarks.ts
+++ b/packages/trpc/routers/bookmarks.ts
@@ -20,6 +20,7 @@ import {
AssetPreprocessingQueue,
LinkCrawlerQueue,
OpenAIQueue,
+ QueuePriority,
QuotaService,
triggerRuleEngineOnEvent,
triggerSearchReindex,
@@ -271,7 +272,10 @@ export const bookmarksAppRouter = router({
const enqueueOpts: EnqueueOptions = {
// The lower the priority number, the sooner the job will be processed
- priority: input.crawlPriority === "low" ? 50 : 0,
+ priority:
+ input.crawlPriority === "low"
+ ? QueuePriority.Low
+ : QueuePriority.Default,
groupId: ctx.user.id,
};
@@ -568,6 +572,7 @@ export const bookmarksAppRouter = router({
},
{
groupId: ctx.user.id,
+ priority: QueuePriority.Low,
},
);
}),