docfast/src/routes/health.ts.backup
OpenClaw 7e74f22ea3
Some checks failed
Deploy to Production / Deploy to Server (push) Failing after 21s
Update backup system and local changes
- BorgBackup disaster recovery system
- Health endpoint updates
- Merged with remote changes
2026-02-15 11:04:58 +00:00

21 lines
555 B
Text

import { Router } from "express";
import { getPoolStats } from "../services/browser.js";
export const healthRouter = Router();
healthRouter.get("/", (_req, res) => {
const pool = getPoolStats();
res.json({
status: "ok",
version: "0.2.1",
pool: {
size: pool.poolSize,
active: pool.totalPages - pool.availablePages,
available: pool.availablePages,
queueDepth: pool.queueDepth,
pdfCount: pool.pdfCount,
restarting: pool.restarting,
uptimeSeconds: Math.round(pool.uptimeMs / 1000),
},
});
});