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.

  • mae
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    4 years ago

    while (true) doSomething();