Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It just stops running tasks after a while #13

Open
sandorvasas opened this issue Feb 21, 2021 · 1 comment
Open

It just stops running tasks after a while #13

sandorvasas opened this issue Feb 21, 2021 · 1 comment

Comments

@sandorvasas
Copy link

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

@jaclarke
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants