fix(crawl-status): returnvalue filtering on active jobs

This commit is contained in:
Gergő Móricz 2024-12-05 18:20:06 +01:00
parent 35d9d8e822
commit f8e619b5df

View File

@ -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;
}