Skip to content

Instantly share code, notes, and snippets.

@dreadjr
Created October 23, 2012 22:24
Show Gist options
  • Save dreadjr/3942096 to your computer and use it in GitHub Desktop.
Save dreadjr/3942096 to your computer and use it in GitHub Desktop.
var kue = require('kue');
var redis = require('redis');
kue.redis.createClient = function() {
var client = redis.createClient(6379, 'redis-host');
//client.auth('password');
return client;
};
var jobs = kue.createQueue();
jobs.process('add', function(job, done) {
setTimeout(function() {
console.log(job.data.x+job.data.y);
done();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment