0.1.2 • Published 7 years ago

akyuu-schedule v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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
    }
};