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,