Skip to content

Commit

Permalink
Merge pull request Unitech#4053 from f-hj/fix/downtime-reload
Browse files Browse the repository at this point in the history
fix: limit concurrent_actions to 1 if nb process <= 2
  • Loading branch information
Unitech authored Dec 4, 2018
2 parents fce63fb + 516b8c2 commit a749313
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,9 @@ class API {
function processIds(ids, cb) {
Common.printOut(conf.PREFIX_MSG + 'Applying action %s on app [%s](ids: %s)', action_name, process_name, ids);

if (ids.length <= 2)
concurrent_actions = 1;

if (action_name == 'deleteProcessId')
concurrent_actions = 10;

Expand Down

0 comments on commit a749313

Please sign in to comment.