This is a custom Nedb store for Better Queue
npm install --save better-queue
npm install --save better-queue-nedb
var Queue = require('better-queue');
var BetterQueueNedb = require('better-queue-nedb');
var store = new BetterQueueNedb('./queue-database.nedb').queueStore;
var q = new Queue(function (input, cb) {
// Some processing here ...
cb(null, result);
})
// pass the nedb store to better queue.
q.use(store);
q.push(1)
q.push({ x: 1 })
Currently failing 7 5 test from better queue.
Basic Queue should run filoBasic Queue should concurrently handle tasks- Basic Queue should timeout and fail
- Basic Queue should cancel while running and in queue
- Basic Queue should respect batchDelayTimeout
- Basic Queue merge batches should call all push callbacks
- Basic Queue cancel should not retry
I've also seen the "should run fifo" and "should prioritize" test fail.