UNPKG

waigo

Version:

Node.js ES6 framework for reactive, data-driven apps and APIs (Koa, RethinkDB)

23 lines (14 loc) 279 B
"use strict"; const waigo = global.waigo, _ = waigo._; /** * Stop cron jobs. * * @param {Object} App The application. */ module.exports = function*(App) { App.logger.debug('Stopping cron jobs'); _.map(App.cron, function(job) { job.stopScheduler(); }); };