From 516b8c26cb79103d7fb0934eabd9cfc4c26fe0d7 Mon Sep 17 00:00:00 2001 From: Florian H-J Date: Mon, 3 Dec 2018 15:03:49 +0100 Subject: [PATCH] fix: limit concurrent_actions to 1 if nb process <= 2 --- lib/API.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/API.js b/lib/API.js index 17a8c3b25..054a47ee5 100644 --- a/lib/API.js +++ b/lib/API.js @@ -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;