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

clever-background-tasks

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

clever-background-tasks

Background processing for the CleverStack Framework

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by200%
Maintainers
2
Weekly downloads
 
Created
Source

CleverStack Background Tasks Module

NPM version GitHub version Dependency Status devDependency Status Code Climate Build Status Coverage NPM downloads Built with Grunt

CleverStack NodeJS Background Tasks Module

This CleverStack Module provides the ability to run multiple background processes that can run "Tasks", this free's the event loop up inside the http workers to respond to web requests while processing can take place in the background.

Documentation

See cleverstack.io for more detailed information on the Node seed or visit the Getting Started Guide

Configuration

Simply add the following config to your /config/local.json (or into your global.json for all environments, or in whatever environment you are using). See https://github.com/CleverStack/clever-background-tasks/wiki/Configuration

Grunt

  1. grunt prompt:cleverBackgroundTasksConfig can be used to generate your config for any environment you want
  2. grunt prompt:addBackgroundTask can be used to add/edit tasks inside your config

Configuration files

{
    "clever-background-tasks": {
        "enabled" : true,
        "interval": 2500,
        "tasks":[
            { "name": "ExampleTask", "parallel": true }
        ],
        "driver": "redis",
        "redis": {
            "host": "localhost",
            "port": "11211"
        }
    }
}

Setup

Using CLI

  1. Run clever install clever-background-tasks and follow the prompts
  2. Run clever serve to start your application.

Without CLI

  1. Clone this repo (or untar it there) into your modules folder (ie modules/clever-background-tasks)
  2. Add 'clever-background-tasks' to the bundledDependencies array of your app's package.json.
  3. Run grunt prompt:cleverBackgroundTasksConfig and fill in your configuration options.
  4. Run grunt prompt:addBackgroundTask to add any tasks to your running configuration.
  5. Run grunt server to start your application.

License

See our LICENSE

Keywords

FAQs

Package last updated on 18 Nov 2014

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