dispo
Version:
Job and cronjob scheduler for Node
37 lines (36 loc) • 815 B
JSON
{
"options": {
"mailer": true
},
"jobs": {
"random": { "file": "jobs/random.js", "cron": "*/1 * * * *", "attempts": 3 },
"randomSingle": { "file": "jobs/random.js", "attempts": 2 },
"flakyService": {
"file": "jobs/fail.js",
"cron": "*/1 * * * *",
"attempts": 4,
"backoff": {
"delay": 3000,
"type": "fixed"
}
},
"flakyServiceWithLongRegenerationTime": {
"file": "jobs/fail.js",
"cron": "*/1 * * * *",
"attempts": 4,
"backoff": {
"delay": 3000,
"type": "incremental"
}
},
"anotherFlakyServiceWithLongRegenerationTime": {
"file": "jobs/fail.js",
"cron": "*/1 * * * *",
"attempts": 3,
"backoff": {
"delay": 2000,
"type": "exponential"
}
}
}
}