GitXplorerGitXplorer
d

better-queue-nedb

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
3913d8e5e4efcda65f4ba1bec751f79d14ee1c3b

skipping the Basic Queue test

ddustintownsend committed 8 years ago
Unverified
047ff1e5a1f33671b45dcdf6a2bccf0146f47641

0.1.4

ddustintownsend committed 8 years ago
Unverified
c66bdc78ed689f90d2f60cebc6ca89b9346c928f

Updated better-queue to 3.8.2 from github since not on npm yet.

ddustintownsend committed 8 years ago
Unverified
3629e91dae767b9d2ce644cae5227ea5d152c36b

Fixed getTask to return just the task instead of the entire result/row from the datastore.

ddustintownsend committed 8 years ago
Unverified
0e2ebaf674bc1c87cc4bbfdcf390f2ad9f2a3a87

Added better-queue-store-test dependency and set-up the store test.

ddustintownsend committed 8 years ago
Unverified
fde31e1015c2bd678ee0ab16d1e5882ea0a523d0

0.1.3

ddustintownsend committed 8 years ago

README

The README file for this repository.

Better Queue Nedb Store

npm package

Build status Dependency Status Known Vulnerabilities

Work in progress

This is a custom Nedb store for Better Queue


Install (via npm)

npm install --save better-queue
npm install --save better-queue-nedb

Quick Example

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 })

Issues

Currently failing 7 5 test from better queue.

  1. Basic Queue should run filo
  2. Basic Queue should concurrently handle tasks
  3. Basic Queue should timeout and fail
  4. Basic Queue should cancel while running and in queue
  5. Basic Queue should respect batchDelayTimeout
  6. Basic Queue merge batches should call all push callbacks
  7. Basic Queue cancel should not retry

I've also seen the "should run fifo" and "should prioritize" test fail.