Skip to content

About

schedule plugin for akyuu

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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

About

schedule plugin for akyuu

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages