redibox-hook-job
v1.2.18
Published
High performance, robust and flexible queue/worker system powered by redis.
Downloads
9
Readme
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: 'sails.hooks.myhook.runJobFoo', // dot notated path to a globally accessible function
data: {
foo: 'bar',
}
});
// With Sails hook
Job.create('my-queue', {
runs: 'sails.hooks.myhook.runJobBar', // dot notated path to a globally accessible function
data: {
foo: 'bar',
}
});
Documentation
License
MIT