handler to auto register and removed service registry, cleaned up queues and cache naming
This commit is contained in:
parent
0d1be9e3cb
commit
34c6c36695
19 changed files with 474 additions and 198 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue