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);
