adonisjs-queue

Schedule and process background jobs in AdonisJS applications.

2|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/omakei/adonisjs-architecture-skill --skill adonisjs-queue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adonisjs-queue
Source: https://github.com/omakei/adonisjs-architecture-skill/tree/main/adonisjs/skills/adonisjs-jobs
Command: npx skills add https://github.com/omakei/adonisjs-architecture-skill --skill adonisjs-queue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AdonisJS applications often need to run tasks asynchronously, coordinate work with workers, and retry failed operations without blocking user requests.

Core Features & Use Cases

  • Typed payloads and services: keep business logic out of jobs by delegating work to services.
  • Flexible queues and retries: configure multiple queues, backoff strategies, and scheduling for scalable, fault-tolerant workflows.
  • Event-driven dispatching: trigger jobs from controllers, services, or events to automate workflows.

Quick Start

Install the queue package, configure a driver, and start dispatching jobs from your services.

Frequently Asked Questions about adonisjs-queue

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

FAQPage Schema
How do I run background jobs in AdonisJS without blocking user requests?

You can run background jobs in AdonisJS by scheduling and processing tasks asynchronously using queues. This Skill orchestrates job execution with typed payloads, retry strategies, and event-driven dispatching to handle async workflows without blocking requests.

How do I configure retry and backoff strategies for failed jobs in AdonisJS?

You can configure retry and backoff strategies for failed jobs using frontmatter-defined configuration in your job classes. This Skill supports multiple queues and customizable retry policies to ensure fault-tolerant, predictable execution of background tasks.

How does dependency injection work with AdonisJS background job services?

Dependency injection in AdonisJS background jobs works by encapsulating business logic in injected services rather than job classes. This Skill enforces typed payloads and delegates work to services, keeping job structures clean and ensuring predictable execution.

Can I dispatch AdonisJS jobs from controllers and events?

Yes, you can dispatch AdonisJS jobs from controllers, services, or events. This Skill uses event-driven dispatching to trigger background workflows automatically, coordinating asynchronous tasks across multiple queues without blocking user requests.

What is the best way to schedule AdonisJS background tasks across multiple queues?

The best way to schedule AdonisJS background tasks is using frontmatter-defined queue names and scheduling policies. This Skill supports multiple queues with typed payloads, allowing scalable and fault-tolerant orchestration of background tasks.

Do I need typed payloads for AdonisJS queue processing?

Yes, typed payloads are required for AdonisJS queue processing. This Skill enforces typed payloads to encapsulate job logic in services and ensure predictable execution across configured queues and retry strategies.