A simple worker queue for Node.js, inspired by kue and intended as a drop-in replacement. Version 0.0.10 (infrequent releases). It uses Redis for storage, processes one job at a time, and avoids extra queues (no completed or error queues) for simplicity. Key differentiator: minimalistic design with fewer moving parts compared to kue or bull, but lacks advanced features like priority, retries, or job scheduling.
npm install quedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup with Redis connection, creating a consumer job, and processing jobs with a worker.
Set TIMEOUT to 0 unless you have poorly written jobs; otherwise ensure jobs always call done().
If you need parallelism, consider using multiple worker processes or another queue library (e.g., bull).
If you need job history, implement your own logging or switch to kue/bull.
Use exact keys: REDIS_HOSTNAME, REDIS_PORT, REDIS_PASSWORD.
Call worker.shutdown() after stopping the consumer to avoid processing new jobs after shutdown.
Start Redis server: redis-server (or check if Redis is installed and running).
Ensure you are using version >=0.0.4 and instantiate Qued with 'new Qued(...)' before calling createConsumer.
Increase TIMEOUT or set to 0 (no timeout). Ensure your job logic calls done().
When creating job, ensure data is passed: consumer.create('type', {foo: 'bar'}).