A lightweight AMQP-based work queue library (v0.11.2, last updated 2015) for Node.js that provides durable, persistent task processing via RabbitMQ. Key features include one-by-one task processing (RabbitMQ 3.3+), cron scheduling, configurable retry with exponential backoff, and a fluent API using promises. Unlike generic AMQP libraries, worque simplifies task definition and lifecycle management with built-in events and scheduling. It relies on AMQP URLs and uses an event-driven model for task lifecycle. The package is stable but in maintenance mode; no recent updates.
npm install worqueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a worque client, defines two tasks (immediate and scheduled), publishes a message, and handles graceful shutdown.
Upgrade RabbitMQ to 3.3+ or handle concurrency manually.
Use native async/await or your own promise library; avoid relying on Bluebird-specific methods.
Implement your own worker pool or use a queue middleware like Bull or Bee-Queue for distributed processing.
Set the server timezone or adjust your cron expression accordingly.
Run 'npm install worque --save' in your project directory.
Start RabbitMQ server or change the AMQP URL to the correct host.
Use const client = require('worque')('amqp://localhost');Ensure each task has only one subscription, or combine handlers.