I have a pretty big and terribly written piece of code that eventually crashes main Node JS process. Probably there are a lot of memory leaks. I tried fixing it, but it's very bad. (Single letter variables and such.)
Sometimes it crashes in 10 seconds, sometimes after 5 hours, but it crashes.
It is not something mission critical. It is trying to read emails by using IMAP.
I don't want to integrate a queue processor right now. Can I simply create a child instance with Node JS, run this code block in the scope of this? Any correct way of doing it?