A Redis-backed reliable task queue and state machine (v0.13.0). Built on four simple queues (todo, doing, failed, done) to ensure tasks are never lost on crash. Features blocking pop, cleanup options, defer support, and pluggable storage backends via subclasses like RedisJsonQ. Latest release: 2015, low maintenance cadence. Alternatives: Bull, Kue, Bee-Queue.
npm install relyqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creation of a RedisJsonQ queue, pushing a task, and blocking process with finish.
Use new Q({ createRedis: () => redis.createClient() }) instead of new Q(redis, opts).Always provide both prefix and createRedis in options object.
Pass objects with optional 'id' field; strings or numbers will be coerced but may cause errors.
Listen for 'error' event on the queue instance instead of globally.
Ensure createRedis returns a valid Redis client: createRedis: () => redis.createClient()
Add prefix: 'myqueue' to options object.
Wrap data in an object: q.push({ id: '1', data: 'value' }, callback)