Skip to content

Commit

Permalink
Fix pm2 not restarting crashed processes
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgupta committed Jun 30, 2022
1 parent 2573516 commit d72e79b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/God.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ God.executeApp = function executeApp(env, cb) {

clu.once('error', function(err) {
console.error(err.stack || err);
clu.pm2_env.status = cst.ERRORED_STATUS;
try {
clu.destroy && clu.destroy();
}
Expand Down Expand Up @@ -302,7 +301,6 @@ God.executeApp = function executeApp(env, cb) {

clu.once('error', function cluError(err) {
console.error(err.stack || err);
clu.pm2_env.status = cst.ERRORED_STATUS;
try {
clu.kill && clu.kill();
}
Expand Down

0 comments on commit d72e79b

Please sign in to comment.