2

I am running an web app and an helper app in parallel. The helper app updates some particular values in database used by the web app. This update happens at fixed time interval by using node-cron. Is it possible to notify admin when the helper app breaks?

1 Answers1

1

You can use exit event in helper app, like

process.on('exit', function() {
    // handle
});
Mukesh Soni
  • 1,119
  • 3
  • 13
  • 23