Skip to content

nemoengineering/adonis-jobs

Repository files navigation

Adonis Jobs

Job queues for your AdonisJS applications

About

A powerful and type-safe job queue system for AdonisJS 6 applications. Built on top of BullMQ, it provides a clean API for managing background jobs, scheduled tasks, and complex job workflows.

Features:

  • Clean BullMQ Integration
  • Dedicated Ace commands for job management
  • Scheduled and delayed job execution
  • Flows: chains and complex workflows
  • Observability with built-in metrics and Opentelemetry support
  • QueueDash integration

Documentation

Tip

For complete documentation, examples, and guides, visit: https://adonis-jobs.nemo.engineering

Quick Start

node ace configure @nemoventures/adonis-jobs

Create your first job:

import { Job } from '@nemoventures/adonis-jobs'

type SendEmailJobData = {
  email: string
  subject: string
}

export default class SendEmailJob extends Job<SendEmailJobData, void> {
  async process(): Promise<void> {
    // Send email logic here
  }
}

Dispatch it:

await SendEmailJob.dispatch({ 
  email: '[email protected]', 
  subject: 'Welcome!' 
})

And run your worker:

node ace queue:work

License

MIT

About

Job queues for your AdonisJS applications

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages