You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time Zone: "" - Cron String: 0 0 6 29 11 6 - UTC offset: +01:00 - current Date: Sun Dec 09 2018 08:41:45 GMT+0100
using cron@1.5.1
The error is triggered by calling cron.nextDates(5).
at CronTime.sendAt (node_modules/cron/lib/cron.js:158:18)
at CronJob.nextDates (node_modules/cron/lib/cron.js:553:24)
at nextDates (test/next.cronJobs.test.js:51:20)
at Object.showPlanning (test/next.cronJobs.test.js:71:7)```
The text was updated successfully, but these errors were encountered:
We had a hard limit on the number of iterations a for loop would
execution when attempting to find the next date of execution. This was
arbitrary, but necessary to deter from an infinite loop that would occur
in a few cases. However, it seems better to let the execution happen up
to an arbitrary time length instead. This allows execution of larger
ranges happen, but still should protect against the infinite loop
scenario. This _may_ cause an issue if the event loop locks up, but if
that happens then the module will be hosed anyway, so don't do that. :)
Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
Thanks @ncb000gt, it fixes much of the issues but now I sometimes reach the 5000 ms timeout when doing a lot of concurrent actions while using nextDate.
I guess it would be nice to have the possibility to set the timeout value as a parameter of nextDates.
Time Zone: "" - Cron String: 0 0 6 29 11 6 - UTC offset: +01:00 - current Date: Sun Dec 09 2018 08:41:45 GMT+0100
using cron@1.5.1
The error is triggered by calling cron.nextDates(5).
The text was updated successfully, but these errors were encountered: