LePatron.email icon indicating copy to clipboard operation
LePatron.email copied to clipboard

App crash if exception or promise is rejected

Open medamineziraoui opened this issue 3 years ago • 2 comments

Currently the hole app crash if an exception or promise is rejected, we need to prevent that and make sure that a failure in the execution won't cause the application to crash

medamineziraoui avatar Feb 19 '21 08:02 medamineziraoui

  • [x] Check if we can prevent that from happening in the express part, until this moment I didn't find evidence that this is possible, we need to always provide next() and handle correctly
  • [x] Add a system at node level to handle crashes.
  • [x] Add system to shutdown instance gracefully
  • [x] Add system to add workers, this will allow us to add more instances and restart them if they fail. use previous version of throng lib

medamineziraoui avatar Feb 19 '21 08:02 medamineziraoui

  • [ ] Add PM2 to current project

medamineziraoui avatar Feb 27 '21 04:02 medamineziraoui