later icon indicating copy to clipboard operation
later copied to clipboard

Schedule firing multiple times

Open martinwells opened this issue 8 years ago • 2 comments

var textSched = later.parse.text('every 1 min');
var timer = later.setInterval(logTime, textSched);
function logTime() {
   console.log(new Date());
}

results in: Thu Feb 04 2016 13:31:59 GMT-0800 (PST) Thu Feb 04 2016 13:31:59 GMT-0800 (PST) Thu Feb 04 2016 13:32:00 GMT-0800 (PST) Thu Feb 04 2016 13:32:59 GMT-0800 (PST) Thu Feb 04 2016 13:33:00 GMT-0800 (PST)

martinwells avatar Feb 04 '16 21:02 martinwells

Same issue as #81. It's jitter in the underlying interval call I think, it needs to ignore instances if they are less than the minimum schedule duration. Haven't had time to put together and test a fix.

bunkat avatar Feb 05 '16 05:02 bunkat

Running into this as well, for a schedule that's "every 1 hours". Here's how it's been running today...

04/14/16 12:59:59
04/14/16 13:00:00
04/14/16 13:59:59
04/14/16 14:00:00
04/14/16 14:59:59
04/14/16 15:00:00

endquote avatar Apr 14 '16 22:04 endquote