moleculer-cron icon indicating copy to clipboard operation
moleculer-cron copied to clipboard

setTime() doesn't restart job

Open safer-bwd opened this issue 3 years ago • 0 comments

@davidroman0O,

In the old version of cron setTime() doesn't restart job:

CronJob.prototype.setTime = function(time) {
  if (!(time instanceof CronTime)) throw new Error('time must be an instance of CronTime.');
  this.stop();
  this.cronTime = time;
};

Please write about it in the documentation or you can update cron.

safer-bwd avatar Feb 15 '22 16:02 safer-bwd