Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 459 Bytes

resources.md

File metadata and controls

25 lines (16 loc) · 459 Bytes

Resources

Used MQ Broker

Usage

Tasks work like plugins you need just create a file in folder server/plugins/tasks and it will be automaticaly loaded on application startup:

export default {
  'db.test.account': testAccount
};

function testAccount({ name, options }, cb) {

}

Than you can call this task from your code:

const service = new TasksService();

service.runTask('db.test.account');