Socket
Socket
Sign inDemoInstall

bossman

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bossman

Distributed job scheduling in node, based on redis.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

bossman

Distributed job scheduling in node, based on redis.

Usage

npm install bossman --save
import Bossman from 'bossman';

// Make sure you name your variables clever things:
const fred = new Bossman({
  connection: {
    host: '127.0.0.1',
    port: 1234,
  },
  // Set the redis key prefix:
  prefix: 'bossman:',
});

// Hire for a job.
fred.hire('engineer', {
  every: '10 minutes',
  work: () => {
    // Do something...
  },
});

// You can also "qa" work:
fred.qa((jobName, jobDefinition, next) => {
  return newrelic.createBackgroundTransaction(`job:${jobName}`, () => {
    const response = next();

    const end = () => {
      newrelic.endTransaction();
    };

    return response.then(end, end);
  })();
});

FAQs

Package last updated on 24 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc