bunkat / later

A javascript library for defining recurring schedules and calculating future (or past) occurrences for them. Includes support for using English phrases and Cron schedules. Works in Node and in the browser.
http://bunkat.github.io/later/
MIT License
2.42k stars 245 forks source link

Scheduler stopping after long time running. #235

Open rodmaz opened 5 years ago

rodmaz commented 5 years ago

We use later.js in a microservice running on a Docker container. The code looks like that:

// Set check and update interval. We check at second 1 of every minute.
const checkInterval = later.parse.recur().on(1).second();
seneca.log.info({ notice: 'check and update at second 1 of every minute' });
later.setInterval(() => { ...}, checkInterval);

However after running for a long time (weeks) without any issues, later stops firing the events in the interval. It simply stops firing, even though the process/Docker continuous running w/o any problems.

Have you even experienced anything similar?