redibox-hook-job

1.2.18 • Public • Published

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

/redibox-hook-job/

    Package Sidebar

    Install

    npm i redibox-hook-job

    Weekly Downloads

    20

    Version

    1.2.18

    License

    MIT

    Last publish

    Collaborators

    • ehesp
    • salakar