Skip to content

Commit

Permalink
feat: add kill_retry_time argument
Browse files Browse the repository at this point in the history
  • Loading branch information
KimSeongIl committed Mar 16, 2018
1 parent 62eedc2 commit b2cc003
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions lib/API/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,9 @@
"windowsHide": {
"type": "boolean",
"default" : true
},
"kill_retry_time": {
"type": "number",
"default" : 100
}
}
4 changes: 2 additions & 2 deletions lib/God/Methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ module.exports = function(God) {
clearInterval(timer);
return cb(null, true);
}
console.log('pid=%d msg=failed to kill - retrying in 100ms', pid);
console.log('pid=%d msg=failed to kill - retrying in %dms', pid, pm2_env.kill_retry_time);
return false;
}, 100);
}, pm2_env.kill_retry_time);

timeout = setTimeout(function() {
clearInterval(timer);
Expand Down

0 comments on commit b2cc003

Please sign in to comment.