- ${msg("Crawl starting...")} + ${isStarting ? msg("Crawl starting...") : msg("Crawl waiting for available resources before it can start...")}
` : isActive(this.workflow.currCrawlState) diff --git a/frontend/src/types/crawler.ts b/frontend/src/types/crawler.ts index 9e935bc1..3083ebe8 100644 --- a/frontend/src/types/crawler.ts +++ b/frontend/src/types/crawler.ts @@ -90,6 +90,7 @@ export type Profile = { export type CrawlState = | "starting" + | "waiting" | "running" | "complete" | "failed" diff --git a/frontend/src/utils/crawler.ts b/frontend/src/utils/crawler.ts index c15b6dae..a1828602 100644 --- a/frontend/src/utils/crawler.ts +++ b/frontend/src/utils/crawler.ts @@ -1,6 +1,7 @@ import type { CrawlState } from "../types/crawler"; export const activeCrawlStates: CrawlState[] = [ "starting", + "waiting", "running", "stopping", ];