aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/crawlerWorker.ts
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-11 15:03:31 +0300
committerMohamedBassem <me@mbassem.com>2024-04-11 15:03:31 +0300
commit238c2967b269ca0f66d8e759c6a0234107e1fd1e (patch)
tree1e8590a829bd6b24950ac56eb0a21450c8ce3332 /apps/workers/crawlerWorker.ts
parentbe622e5594ecb21c82bb6066a82c86e0917bcc35 (diff)
downloadkarakeep-238c2967b269ca0f66d8e759c6a0234107e1fd1e.tar.zst
fix: Increase default navigation timeout to 30s, make it configurable and add retries to crawling jobs
Diffstat (limited to 'apps/workers/crawlerWorker.ts')
-rw-r--r--apps/workers/crawlerWorker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workers/crawlerWorker.ts b/apps/workers/crawlerWorker.ts
index c9a1189c..eec8cd98 100644
--- a/apps/workers/crawlerWorker.ts
+++ b/apps/workers/crawlerWorker.ts
@@ -170,7 +170,7 @@ async function crawlPage(jobId: string, url: string) {
const page = await context.newPage();
await page.goto(url, {
- timeout: 10000, // 10 seconds
+ timeout: serverConfig.crawler.navigateTimeoutSec * 1000,
});
logger.info(
`[Crawler][${jobId}] Successfully navigated to "${url}". Waiting for the page to load ...`,