some logs for tracking the cron issue

This commit is contained in:
Girish Ramakrishnan
2020-10-07 14:47:51 -07:00
parent dca345b135
commit f2489c0845
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -64,6 +64,8 @@ var NOOP_CALLBACK = function (error) { if (error) debug(error); };
function startJobs(callback) {
assert.strictEqual(typeof callback, 'function');
debug('startJobs: starting cron jobs');
const randomTick = Math.floor(60*Math.random());
gJobs.systemChecks = new CronJob({
cronTime: '00 30 2 * * *', // once a day. if you change this interval, change the notification messages with correct duration