AMQP-based job queue with Redis-backed job status tracking (inactive, active, complete, error, progress). Current version 1.2.4, weekly releases. Differentiators: integrates AMQP for message routing/persistence while using Redis solely for monitoring job states across queues. Supports lightweight mode to skip monitoring for high-throughput jobs. Good for simple distributed job processing with visibility into job lifecycle.
npm install amqp-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up AMQP queue and Redis client, creates a job, processes it with progress tracking, and handles complete/error events.
Ensure lightweight:true is only used when monitoring is not needed, or omit to track status.
Replace 'redis' with 'redisClient' in Queue constructor options.
Change queue.setup('myqueue') to queue.setup({ mainQueue: 'myqueue' }).Only call job.progress() inside the process handler.
Always await amqpConn.connect() and redisClient.connect() before new Queue(...).
Use `import { Queue } from 'amqp-queue'` instead of `import Queue from 'amqp-queue'`.Await redisClient.connect() before creating Queue instance.
Only use job.progress() inside the callback passed to queue.process().