express-bull
v1.1.1
Published
Express 4 router containing an API for bull job queue
Downloads
179
Readme
express-bull
Express 4 router containing an API for bull job queue, based heavily on Matador. It uses less libraries and uses bluebird instead of Q as the promise library.
Designed for consumption by react-bull
Usage
npm install --save express-bull
var redis = require('redis');
var express = require('express');
var expressBull = require('express-bull');
var app = express();
app.use('/jobs', expressBull({
router: express.Router(),
redisClient: redis.createClient()
}))
require('http').Server(app).listen(1337)
$ curl http://localhost:1337/jobs/active
{"keys":[],"counts":{"active":0,"complete":0,"failed":0,"pending":0,"total":0,"stuck":0}}