adonisjs-queuedash
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

QueueDash

Getting Started

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

Usage

basic usage

// start/routes.ts

import { Queue } from 'bullmq';

Route.queuedash('/queues', {
	queues: [
		{
			queue: new Queue('report-queue'),
			displayName: 'Reports',
			type: 'bullmq' as const, // bullmq, bull, bee
		},
	],
});

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,
}));

Route.queuedash('/queues', {
	queues,
});

Package Sidebar

Install

npm i adonisjs-queuedash

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

9.09 kB

Total Files

11

Last publish

Collaborators

  • kabbouchi