|
|
|
@ -23,7 +23,7 @@ if (configs.length === 0) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// running through configs
|
|
|
|
|
for (const config in configs)
|
|
|
|
|
for (const config in configs) {
|
|
|
|
|
|
|
|
|
|
// check for cron
|
|
|
|
|
if (!config.hasOwnProperty('cron')) {
|
|
|
|
@ -35,6 +35,10 @@ for (const config in configs)
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
const task = cron.schedule(config.cron, async() => {
|
|
|
|
|
const docket = await run(config, docket)
|
|
|
|
|
try {
|
|
|
|
|
const docket = await run(config, docket)
|
|
|
|
|
} catch(error) {
|
|
|
|
|
logger(config.slug).error(error)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|