jobd-master fixes

This commit is contained in:
Evgeny Zinoviev 2021-03-04 04:02:59 +03:00
parent 39a2075fd9
commit 0d7a99a588

View File

@ -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 = {}