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.

Home Page:http://bunkat.github.io/later/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scheduler stopping after long time running.

rodmaz opened this issue · comments

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?