akyuu-schedule
v0.1.2
Published
schedule plug in for akyuu
Downloads
3
Readme
akyuu-schedule
redis adapter for akyuu
Installation
npm install akyuu-schedule
Configuration
Make sure you have a plugins
section in your configuration file(s) and have scheduled
folder in project root.
Usage
Config File
// ${project}/config/default/plugins.js
'use strict'
module.exports = {
schedule: {
enabled: true
}
}
Tasks in scheduled folder
// {$project}/scheduled/${taskName}.js
'use strict'
module.exports = {
plan: '*/10 * * * * *', // cron plan, run task every 10s
job: function () {
// your task code
}
};