mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Update queue-worker.ts
This commit is contained in:
parent
3ebdf93342
commit
08c1fa799b
|
@ -14,7 +14,7 @@ if(process.env.ENV === 'production') {
|
|||
getWebScraperQueue().process(
|
||||
Math.floor(Number(process.env.NUM_WORKERS_PER_QUEUE ?? 8)),
|
||||
async function (job, done) {
|
||||
console.log('getWebScraperQueue - start')
|
||||
|
||||
try {
|
||||
job.progress({
|
||||
current: 1,
|
||||
|
@ -23,13 +23,10 @@ getWebScraperQueue().process(
|
|||
current_url: "",
|
||||
});
|
||||
const start = Date.now();
|
||||
console.log('getWebScraperQueue - startWebScraperPipeline')
|
||||
const { success, message, docs } = await startWebScraperPipeline({ job });
|
||||
console.log('getWebScraperQueue - startWebScraperPipeline - done')
|
||||
const end = Date.now();
|
||||
const timeTakenInSeconds = (end - start) / 1000;
|
||||
|
||||
console.log('docs.length:', docs.length)
|
||||
const data = {
|
||||
success: success,
|
||||
result: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user