added routes and simplified batch processor

This commit is contained in:
Boki 2025-06-10 20:59:53 -04:00
parent 0357908b69
commit 4883daa3e2
12 changed files with 1130 additions and 238 deletions

View file

@ -0,0 +1,20 @@
/**
* Health check routes
*/
import { Hono } from 'hono';
import { queueManager } from '../services/queue.service';
export const healthRoutes = new Hono();
// Health check endpoint
healthRoutes.get('/health', (c) => {
return c.json({
service: 'data-service',
status: 'healthy',
timestamp: new Date().toISOString(),
queue: {
status: 'running',
workers: queueManager.getWorkerCount()
}
});
});