Closed hsjakobsen closed 5 months ago
Hi, you're running on v2.0.0 at most. This is shown by the error message you encountered, which has been changed in v2.1.0.
This bug was fixed in v2.4.1, so upgrading to at least that version will resolve your issue.
Description
I am running a cron every 10 seconds and it crashed:
Error: Something went wrong. cron reached maximum iterations. Please open an issue (https://github.com/kelektiv/node-cron/issues/new) and provide the following string
Time Zone: "" - Cron String: 0,10,20,30,40,50 * * * * * - UTC offset: +00:00 - current Date: Mon Jan 15 2024 23:02:36 GMT+0000
Expected Behavior
It should keep running
Actual Behavior
It crashed as above
Possible Fix
I don't know.
Steps to Reproduce
Run cron with with 10 sec interval for a long period.
Context
Our server is checking to calculate things every 10 seconds and if the cron stops running, it doesn't happen.
Your Environment
cron
version: 3.1.6