From 2cf7a4f57a4fc081fec32fe4ff6aeac3670cff09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Mon, 20 Jan 2025 09:40:59 +0100 Subject: [PATCH] fix(batch-scrape): auto finish "kickoff" (no kickoff) --- apps/api/src/controllers/v1/batch-scrape.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/api/src/controllers/v1/batch-scrape.ts b/apps/api/src/controllers/v1/batch-scrape.ts index 21c9745c..d2c079bf 100644 --- a/apps/api/src/controllers/v1/batch-scrape.ts +++ b/apps/api/src/controllers/v1/batch-scrape.ts @@ -11,6 +11,7 @@ import { } from "./types"; import { addCrawlJobs, + finishCrawlKickoff, getCrawl, lockURLs, saveCrawl, @@ -131,6 +132,8 @@ export async function batchScrapeController( }; }); + await finishCrawlKickoff(id); + logger.debug("Locking URLs..."); await lockURLs( id,