add-queue-job

Automate BullMQ queue creation and wiring in NestJS projects.

30|3|Updated Mar 8, 2020
One-click install
npx skills add https://github.com/uxname/liteend --skill add-queue-job
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-queue-job
Source: https://github.com/uxname/liteend/tree/main/.agents/skills/add-queue-job
Command: npx skills add https://github.com/uxname/liteend --skill add-queue-job

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automate the creation and wiring of a BullMQ queue in a NestJS project, including processor, producer injection, and Bull Board integration.

Core Features & Use Cases

  • Automatic queue module generation: scaffolds a dedicated queue module with processor, service, and registration.
  • Producer integration: exposes a producer service to enqueue jobs from other modules.
  • UI monitoring: integrates with Bull Board for queue visibility and control.
  • Testing scaffolding: provides unit test templates for processor and producer.

Quick Start

Create a new queue module with a processor and producer service, register it in app.module.ts, and run the unit tests.

Frequently Asked Questions about add-queue-job

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a BullMQ queue in a NestJS project end to end?

To set up a BullMQ queue in NestJS, you need a dedicated queue module containing a processor and a producer service, which must be registered in app.module.ts. This ensures structured producer injection and background job processing.

How do I integrate Bull Board for queue monitoring with NestJS?

Bull Board integration for queue monitoring connects directly to your BullMQ queues in NestJS to provide UI visibility and control. It is configured alongside the queue module to expose job states and allow manual interactions.

What's the best way to inject a BullMQ producer service into other NestJS modules?

Injecting a BullMQ producer service into other NestJS modules requires exposing the service from a dedicated queue module. By registering the queue module in app.module.ts, other modules can import it to enqueue background jobs.

Can I generate unit tests for BullMQ processors and producers in NestJS?

You can generate unit tests for BullMQ processors and producers in NestJS using provided testing scaffolding templates. These templates validate the job processing logic and the producer service's enqueue behavior within the queue module.

Does automating BullMQ queue creation require a dedicated queue module in NestJS?

Automating BullMQ queue creation in NestJS does require a dedicated queue module to enforce a structured implementation. This module isolates the processor, producer service, and registration logic for cohesive background job management.