Registry / devops / oraq
library0.2.4jsnpmunverified

Oraq (Ordered redis asynchronous queue) is a cross-process, cross-server, fast, reliable and lightweight redis-based async queue for Node.js (current stable version 0.2.4). It supports both queue (FIFO order) and limiter (rate limiting) modes, with features like concurrency control, job timeout, ping keep-alive, and LIFO support. Key differentiators: lightweight with minimal dependencies (only ioredis), simple API using a single Oraq class, and compatibility with Node.js >=7.6.0. Not actively maintained; last release in 2019.

npm install oraq
INSTALL
IMPORT
SIG · ORAQ
O
oraq
devopsjavascriptv0.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Oraq
const Oraq = require('oraq')
CommonJS usage; no default ESM export available.
Oraq (default import)
import Oraq = require('oraq')
import Oraq from 'oraq'
Package does not have a default ESM export; use require or TypeScript import = require().

Creates an Oraq queue with concurrency 1 and processes multiple time-delayed jobs, demonstrating basic job limiting.

const Oraq = require('oraq'); const oraq = new Oraq({ id: 'myQueue', concurrency: 1, connection: { host: 'localhost', port: 6379 } // adjust for your Redis }); const job = ms => new Promise(resolve => setTimeout(() => resolve(ms), ms)); Promise.all([ 14000, 8000, 10000, 7000 ].map(delay => oraq.limit(job, { jobData: delay }))) .then(jobResults => console.log(jobResults));
Debug
Known issues
gotchaWhen mode is 'queue', job order is preserved. When mode is 'limiter', order is not guaranteed but rate limiting is applied.
fix
Set mode explicitly: new Oraq({ mode: 'queue' }) for FIFO order.
affects: >=0.0.0
gotchaJob timeout resets on each ping; if a job takes longer than timeout, it will be considered failed and removed.
fix
Adjust timeout and ping options to match job duration.
affects: >=0.0.0
deprecatedNo breaking changes known, but package is in maintenance mode with no updates since 2019.
fix
Consider migrating to actively maintained alternatives like Bull or BullMQ.
affects: >=0.0.0
Errors
Common errors & fixes
Oraq is not defined
Using import Oraq from 'oraq' instead of require('oraq')
fix
Use const Oraq = require('oraq'); or import Oraq = require('oraq') with TypeScript.
Error: The job "..." timed out.
Job execution exceeded the timeout option (default 2 hours).
fix
Increase timeout in constructor options or ensure job completes within the timeout period.
Upgrade
Version history
0.2.4latest on npm
Audit
Dependencies
ioredisrequiredRequired for Redis connection and queue operations.
Agent activity
2 hits · last 30 days
node
2
Resources
packageoraq
oraq — npm install oraq · libregistry