redis-agenda
0.0.1 • Public • Published redis-agenda
Distribute agenda events via Redis pub/sub.
Example
var Agenda = require('redis-agenda');
var agenda = new Agenda({...});
agenda.on('redis:complete', function (job) {
});
You may also emit custom event on agenda
instance:
agenda.emit('custom event', {some: 'data'});
and listen to it (with prefix redis:
) in the same
or in another instance(s):
agenda.on('redis:custom event', function (data) {
console.log(data);
});
License
MIT
Package Sidebar
Install
Weekly Downloads