Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

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.ts
index 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<CrawlStatusPara
const 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 - MG
continue;
}