jaclarke/cronosjs

It just stops running tasks after a while

Opened this issue · 1 comments

Seemingly no reason, cron schedule is */10 * * * *. Runs for half a day, then no more.

Does the task fire the 'ended' event before it stops working? (https://github.com/jaclarke/cronosjs#events) This event means that cronosjs cannot find a future time that matches the cron expression, which for */10 * * * * would be a bug, since that expression should run forever.

Alternatively it may be that setTimeout is failing: there is a bug in some versions of node.js where setTimeout will sometimes randomly stop working after a certain amount of time (nodejs/node#22149). This may be the problem here, though it's odd since half a day is a lot shorter than the 20ish days people were reporting in that node issue.