Background processing for the CleverStack Framework
npm install clever-background-tasksCleverStack Background Tasks Module
====================
        
!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.
See cleverstack.io for more detailed information on the Node seed or visit the Getting Started Guide
grunt prompt:cleverBackgroundTasksConfig can be used to generate your config for any environment you wantgrunt prompt:addBackgroundTask can be used to add/edit tasks inside your config```
{
"clever-background-tasks": {
"enabled" : true,
"interval": 2500,
"tasks":[
{ "name": "ExampleTask", "parallel": true }
],
"driver": "redis",
"redis": {
"host": "localhost",
"port": "11211"
}
}
}
and follow the prompts
2. Run clever serve to start your application.$3
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.
6. Run grunt server` to start your application.See our LICENSE