@boostkit/queue-bullmq
v0.0.5
Published
BullMQ adapter provider for `@boostkit/queue` with Redis-backed dispatch and workers.
Readme
@boostkit/queue-bullmq
BullMQ adapter provider for @boostkit/queue with Redis-backed dispatch and workers.
Installation
pnpm add @boostkit/queue-bullmqUsage
import { bullmq } from '@boostkit/queue-bullmq'
const provider = bullmq({
host: '127.0.0.1',
port: 6379,
prefix: 'boostkit',
jobs: [],
})
const adapter = provider.create()API Reference
BullMQConfigbullmq(config?)→QueueAdapterProvider
Configuration
BullMQConfigdriver?,url?host?,port?,password?prefix?jobs?
Notes
- Uses
bullmqand Redis. - Register all job classes in
jobsso worker execution can resolve by job name.
