Node.js setInterval() stops executing after 25 days

前端 未结 3 1505
情话喂你
情话喂你 2021-01-02 11:40

In my Node.js application, I use setInterval() to run a specific function every 1 hour. The function is executed properly for about 25 days, then the timer stop

3条回答
  •  执笔经年
    2021-01-02 12:07

    It seems the bug (#22149) has been fixed in Node.js 10.9.0.

    It may be also worth noting that this bug seems to be influencing both setInterval() and setTimeout() (as reported here), so the workaround with setTimeout() in the callback function wouldn't work.

提交回复
热议问题