I have a pretty data heavy Node application. Besides common things like file uploading, the app also spawns detached (long running) child processes.
For an example, consider a user uploads a file and the detached process triggers a native tool installed on the system to do some heavy processing. This can take anywhere between a second and several minutes - therefore the process is detached and the user is notified within the web site (when online) or via email.
I'm considering to use pm2 as monitoring tool. It seems great, though how would I monitor individual detached child processes with it? I've read most of the docs and checked the code examples - but I didn't find an example for my particular problem.
Concrete config examples will be welcome, since I'm new to pm2.