Distributed timed job queue backed by Redis. Version 1.4.0 is current stable, last updated in 2019. It supports Redis cluster, multiple queues with prefix segregation, automatic scanning, retry and expiration of jobs. Key differentiators: designed for Node.js 6+, uses thunk-redis (callback/promise based, not modern async/await), and provides EventEmitter events for connection lifecycle and scan progress. It is a niche, low-maintenance library suitable for simple timed job scenarios but may lack modern features like persistence or advanced scheduling compared to Bull/BullMQ.
npm install timed-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a timed queue, creates a queue named 'event', listens for jobs, and adds a job.
Call the returned thunk with a callback: addjob(...)(callback) or wrap with a Promise manually.
Consider using Bull or BullMQ which support modern Node.js versions.
Evaluate alternatives like Bull (v3.x) or BullMQ (requires Redis Stack) for active development and support.
Set appropriate interval (e.g., 1000) for near-real-time needs, but beware of load on Redis.
Cache the queue reference if needed, but no error if you call it multiple times.
Ensure you use const q = timedQueue.queue('name'); then q.addjob(...)(callback).Start Redis or pass correct connection args: new TimedQueue({...}).connect(6379, 'localhost').Call addjob like addjob(id, timing)(function(err, res) { ... }) or wrap with a Promise function.