From 0d7a99a588f620be37584eb27981245d0b92ad8e Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Thu, 4 Mar 2021 04:02:59 +0300 Subject: jobd-master fixes --- src/lib/workers-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/workers-list.js b/src/lib/workers-list.js index 27953bb..3f2246e 100644 --- a/src/lib/workers-list.js +++ b/src/lib/workers-list.js @@ -126,7 +126,7 @@ class WorkersList { targets }) ) - .then(error => { + .catch(error => { this.logger.error('_pokeWorkerConnection:', error) }) } @@ -359,7 +359,7 @@ class WorkersList { */ _pauseContinueWorkers(action, targets) { (targets === null ? this.workers : this.getWorkersByTargets(targets)) - .map(worker => { + .forEach(worker => { this.logger.debug(`${action}Targets: sending ${action} request to ${worker.connection.remoteAddr()}`) let data = {} -- cgit v1.2.3