You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
539 B
15 lines
539 B
import { loadDevEnv } from "@/lib/dev-env";
|
|
import { getQuoteRpaQueueCounts } from "@/workers/rpa/queue";
|
|
import { isAnyRpaWorkerHealthy } from "@/lib/rpa/worker-health";
|
|
import { recoverOrphanActiveJobs } from "@/workers/rpa/queue-recovery";
|
|
|
|
async function main() {
|
|
loadDevEnv();
|
|
const counts = await getQuoteRpaQueueCounts();
|
|
const healthy = await isAnyRpaWorkerHealthy();
|
|
const recovered = await recoverOrphanActiveJobs();
|
|
console.log(JSON.stringify({ counts, healthy, recovered }, null, 2));
|
|
}
|
|
|
|
main().catch(console.error);
|