fix: prioritize scrape jobs over crawl jobs
This commit is contained in:
@@ -11,6 +11,7 @@ export async function addScrapeJob(
|
|||||||
return await getScrapeQueue().add(jobId, webScraperOptions, {
|
return await getScrapeQueue().add(jobId, webScraperOptions, {
|
||||||
...options,
|
...options,
|
||||||
jobId,
|
jobId,
|
||||||
|
priority: webScraperOptions.crawl_id ? 2 : 1,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user