egg-task
Usage
// [Project]/config/plugin.js exports.task = { enable: true, package: 'egg-task',}; // [Project]/config/config.default.js config.queue = { client: { redis: { host: 'localhost', port: 6379, db: 0, }, }, }; // [Project]/app/task/test.js // example 'use strict'; const { Task } = ; module.exports =; // [Project]/app/controller/home.js // example this.ctx.task.test.;