Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

foundry-kue-scheduler

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

foundry-kue-scheduler

Simple wrapper for kue/kue-scheduler that hooks it up with node-config and provides logical separation between job creation and job processing

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Purpose

foundry-kue-scheduler provides a light-weight wrapper around kue designed with engineering best practices in mind. You must explicitly request permission to create jobs or process jobs separately (as opposed to having direct access to Queue which lets you do both). It works with Node config out of the box giving you flexibility to configure your Redis connection. It only returns a job after it's successfully created and uses a Promise interface using Bluebird Promise implementation. You can schedule jobs with an 'every' config param set, which mimics a cron interval scheduling string. Info.

Setup

  1. Install Docker! https://docs.docker.com/engine/installation/

  2. Build the docker image

npm run docker:build

  1. If you're using an IDE, I recommend setting NODE_CONFIG_DIR to src/config.

  2. If you want to run tests on your local machine instead of Docker, you should create src/config/default.json with Redis connection locally:

{
  "queue": {
    "redis": {
      "host": "192.168.99.100",
      "port": "6379",
      "db": 5
    }
  }
}
  1. Run docker-compose up

Running tests

The official tests should be run using npm test

Keywords

FAQs

Package last updated on 27 Apr 2017

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