RediBox Job
The RediBox Job hook allows code to be run & distributed across many servers, whilst being highly configurable. Works well with the Schedule hook.
Installation
First ensure you have RediBox installed.
Install Job via npm:
npm install redibox-hook-job --save
Usage
RediBox.hooks.job.create('my-queue', {
runs: function(job) {
console.log('The value of foo is ' + job.data.foo);
},
data: {
foo: 'bar',
}
});
// With Sails hook
Job.create('my-queue', {
runs: function(job) {
console.log('The value of foo is ' + job.data.foo);
},
data: {
foo: 'bar',
}
});
Documentation
License
MIT