Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(crawl-status): returnvalue filtering on active jobs
Gergő Móriczf8e619b5dfce
diff --git a/apps/api/src/controllers/v1/crawl-status.ts b/apps/api/src/controllers/v1/crawl-status.tsindex 31f839d65..c0c4f4b58 100644--- a/apps/api/src/controllers/v1/crawl-status.ts+++ b/apps/api/src/controllers/v1/crawl-status.ts@@ -101,7 +101,7 @@ export async function crawlStatusController(req: RequestWithAuth<CrawlStatusParaconst job = jobs[ii];const state = await job.getState();- if (state === "failed") {+ if (state === "failed" || state === "active") { // TODO: why is active here? race condition? shouldn't matter tho - MGcontinue;}