handler to auto register and removed service registry, cleaned up queues and cache naming

This commit is contained in:
Boki 2025-06-23 21:23:38 -04:00
parent 0d1be9e3cb
commit 34c6c36695
19 changed files with 474 additions and 198 deletions

View file

@ -234,17 +234,16 @@ export function createMonitoringRoutes(container: IServiceContainer) {
const connection = {
host: 'localhost',
port: 6379,
db: 1,
db: 0, // All queues in DB 0
};
const queue = new Queue(`{${queueName}}`, { connection });
const queue = new Queue(queueName, { connection });
try {
const counts = await queue.getJobCounts();
await queue.close();
return c.json({
queueName,
bullmqName: `{${queueName}}`,
counts
});
} catch (error: any) {