mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-06 02:06:05 +08:00
fix(queue-jobs): jobs with concurrency fails may vanish
This commit is contained in:
parent
b696bfc854
commit
095babe70b
@ -64,7 +64,7 @@ export function waitForJob(jobId: string, timeout: number) {
|
||||
} else if (state === "failed") {
|
||||
// console.log("failed", (await getScrapeQueue().getJob(jobId)).failedReason);
|
||||
const job = await getScrapeQueue().getJob(jobId);
|
||||
if (job.failedReason !== "Concurrency limit hit") {
|
||||
if (job && job.failedReason !== "Concurrency limit hit") {
|
||||
clearInterval(int);
|
||||
reject(job.failedReason);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user