From 654d6c6e0b128e65f41f40b419b957428ad5b659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Tue, 17 Dec 2024 13:21:24 +0100 Subject: [PATCH] fix(scrapeURL): increase timeToRun --- apps/api/src/scraper/scrapeURL/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/scraper/scrapeURL/index.ts b/apps/api/src/scraper/scrapeURL/index.ts index 800457a8..93bdb71b 100644 --- a/apps/api/src/scraper/scrapeURL/index.ts +++ b/apps/api/src/scraper/scrapeURL/index.ts @@ -204,7 +204,7 @@ async function scrapeURLLoop(meta: Meta): Promise { let result: EngineScrapeResultWithContext | null = null; const timeToRun = meta.options.timeout !== undefined - ? Math.round(meta.options.timeout / Math.min(fallbackList.length, 3)) + ? Math.round(meta.options.timeout / Math.min(fallbackList.length, 2)) : undefined for (const { engine, unsupportedFeatures } of fallbackList) {