title: Node.js setInterval() stops executing after 25 days
body: <p>In my Node.js application, I use <code>setInterval()</code> to run a specific function every 1 hour. The function is executed properly for about 25 days, then the timer stops firing.</p>
  
  <p>25 days seems awfully close to Node.js's <a href="https://github.com/nodejs/node/blob/master/lib/internal/timers.js#L21" rel="noreferrer"><code>TIMEOUT_MAX</code></a> (2^31 milliseconds ≈ 25 days), but I don't really see why <code>setInterval()</code> should stop executing after that time.</p>
  
  <p>Update:</p>
  
  <p>I think this may have been caused by the following bug in Node.js: <a href="https://github.com/nodejs/node/issues/22149" rel="noreferrer">setInterval callback function unexpected halt #22149
  </a></p>