AdonisJS adapter for queuedash
This package is available in the npm registry.
npm install adonisjs-queuedash
Next, configure the package by running the following command.
node ace configure adonisjs-queuedash
basic usage
// start/routes.ts
import { Queue } from 'bullmq';
// http://127.0.0.1:3333/queuedash
Route.queuedash('/queuedash', {
queues: [
{
queue: new Queue('report-queue'),
displayName: 'Reports',
type: 'bullmq' as const, // bullmq, bull, bee
},
],
}).middleware(['auth']);
using @rlanz/bull-queue
// start/routes.ts
import { Queue as BullmqQueue } from 'bullmq';
import { queueNames, config } from 'Config/queue';
const queues = queueNames.map((queueName) => ({
queue: new BullmqQueue(queueName, {
connection: config.connection,
}),
displayName: queueName,
type: 'bullmq' as const,
}));
// http://127.0.0.1:3333/queues
Route.queuedash('/queues', {
queues,
});
If you encounter an error during the build process, it may be resolved by installing TypeScript version 5. You can do this using either npm or yarn as follows:
For npm:
npm install typescript@5
For yarn:
yarn add typescript@5
This specifies the installation of TypeScript version 5 as a development dependency, which should align with your project's requirements.
Published under MIT License.