mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-06 01:46:04 +08:00
fix(v0/search): pass job priority
This commit is contained in:
parent
20ffdbd15c
commit
0dd06d33ef
@ -98,7 +98,7 @@ export async function searchHelper(
|
|||||||
if (Sentry.isInitialized()) {
|
if (Sentry.isInitialized()) {
|
||||||
for (const job of jobDatas) {
|
for (const job of jobDatas) {
|
||||||
// add with sentry instrumentation
|
// add with sentry instrumentation
|
||||||
jobs.push(await addScrapeJob(job.data as any, {}, job.opts.jobId));
|
jobs.push(await addScrapeJob(job.data as any, {}, job.opts.jobId, job.opts.priority));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
jobs = await getScrapeQueue().addBulk(jobDatas);
|
jobs = await getScrapeQueue().addBulk(jobDatas);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user