Skip to content

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

fix: prioritize scrape jobs over crawl jobs

Gergo Moricz4bbc9db1dfa3
diff --git a/apps/api/src/services/queue-jobs.ts b/apps/api/src/services/queue-jobs.ts
index add37c45f..5e679bfc3 100644
--- a/apps/api/src/services/queue-jobs.ts
+++ b/apps/api/src/services/queue-jobs.ts
@@ -11,6 +11,7 @@ export async function addScrapeJob(
return await getScrapeQueue().add(jobId, webScraperOptions, {
...options,
jobId,
+ priority: webScraperOptions.crawl_id ? 2 : 1,
});
}