Minimalist abstraction layer for amqp jobs implementations.
var amqp = require('amqp');
var jobs = require('../');
var connection = amqp.createConnection({ host: "localhost" });
connection.on('ready', function() {
var job = jobs(connection, 'amqp-jobs-example');
job.queue({ text : 'hello world' });
});
var amqp = require('amqp');
var jobs = require('../');
var connection = amqp.createConnection({ host: "localhost" });
connection.on('ready', function() {
var job = jobs(connection, 'amqp-jobs-example');
var generateError = false;
job.worker(function(message, next) {
next();
});
});