mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 15:30:44 +08:00
fix(runWebScraper): don't filter empty docs
This commit is contained in:
parent
55ec96c23f
commit
920b7f2f44
@ -104,7 +104,7 @@ export async function runWebScraper({
|
||||
return { url: doc.metadata.sourceURL };
|
||||
}
|
||||
})
|
||||
: docs.filter((doc) => doc.content.trim().length > 0);
|
||||
: docs;
|
||||
|
||||
const isCancelled = await (await getWebScraperQueue().client).exists("cancelled:" + bull_job_id);
|
||||
|
||||
|
@ -52,7 +52,6 @@ const processJobInternal = async (token: string, job: Job) => {
|
||||
try {
|
||||
const result = await processJob(job, token);
|
||||
const jobState = await job.getState();
|
||||
console.log("done", job, jobState, result);
|
||||
if (jobState !== "completed" && jobState !== "failed") {
|
||||
await job.moveToCompleted(result.docs, token, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user