fix(concurrency-limit): allow for big crawls

This commit is contained in:
Gergő Móricz 2025-02-04 19:26:30 +01:00
parent 1951b60881
commit 1e7d42e8af

View File

@ -10,7 +10,7 @@ const constructQueueKey = (team_id: string) =>
export function calculateJobTimeToRun( export function calculateJobTimeToRun(
job: ConcurrencyLimitedJob job: ConcurrencyLimitedJob
): number { ): number {
let jobTimeToRun = 2 * 60 * 1000; let jobTimeToRun = 86400000; // 24h (crawl)
if (job.data.scrapeOptions) { if (job.data.scrapeOptions) {
if (job.data.scrapeOptions.timeout) { if (job.data.scrapeOptions.timeout) {