A simple SQLite-backed FIFO queue for running many short tasks sequentially in Node.js event thread without blocking. Version 1.0.5, last released in 2018. Uses setImmediate() to allow event loop to poll between tasks. Differentiates from in-memory queues or worker threads by providing persistence via SQLite and promise-based API. Ideal for small tasks that must survive crashes/restarts.
npm install node-persistent-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a persistent queue, adds a task, and starts processing with event handlers.
Update Node.js to LTS version or use a more modern queue library.
Call q.start() after setting up event handlers.
Ensure directory exists and is writable.
Evaluate alternatives for active maintenance.
Ensure first argument is a valid path; the table is created on first .push() call.
Use 'new Queue(path)' instead of just 'Queue(path)'.
Add q.on('error', console.error) before calling q.start().