title: Node cron task not working after app running for a while (node-cron, cronr, timexe)
body: <p>I am trying to leave a node application with a cron job running on my laptop and it seems to work if I start the app not long before the job has to actually run.
  What I mean by this is if, for example, I set a job to run at 2:05 pm and I start the app at 2 pm, it runs fine, but if I start the app at 10 am, I don't know why, the job doesn't run (but the app IS still running) which is weird.</p>
  <p>Does anyone know if locking my macbook (not turning the machine off, of course) or having the app running for a long time (say more than 1-2 hours) does something with node or macOS does something that may be the culprit of my job not running even if the app is still running?</p>
  <p>It's weird because if I start the app just a bit before the job needs to run, everything runs fine, it's like if having the app running for a long time makes the job not work, but the app still runs.</p>
  <p>I'm really confused about this, hope I made myself clear.</p>
  <p>The code, just in case:</p>
  <pre><code>const Cronr = require(&quot;cronr&quot;);
  const fetch = require(&quot;node-fetch&quot;);
  const job = new Cronr(&quot;* 58 18 1 * * *&quot;, () =&gt; {
    fetch(&quot;https://google.com&quot;)
     .then((r) =&gt; r.text())
     .then((r) =&gt; {
       console.log(r);
  });
  job.start()
  </code></pre>