I wrote a Node script for work that takes 24 hours to complete (lots of 2 minute timeouts) and I’d like it to just restart at its end and begin again. I suppose I could just write a chron job for it on whatever VM we end up running it on if this isn’t possible.
You must log in or register to comment.
You probably have to put it in a loop:
https://stackoverflow.com/questions/37224520/are-functions-in-javascript-tail-call-optimized
Oops, that one is ancient. Here’s a more recent post
while (true) doSomething();