repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #827 from poolifier/dependabot/npm_and_yarn/examples/typescript...
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 1d27428e05f3328427977bbda2947fcda9c873a4..2a52d5486984133e620552877e90921d50d96190 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-703,7
+703,7
@@
export abstract class AbstractPool<
if (message.kill === 'success') {
resolve()
} else if (message.kill === 'failure') {
if (message.kill === 'success') {
resolve()
} else if (message.kill === 'failure') {
- reject(new Error(
'Worker kill message handling failed'
))
+ reject(new Error(
`Worker ${workerId} kill message handling failed`
))
}
})
})
}
})
})
@@
-958,7
+958,9
@@
export abstract class AbstractPool<
workerUsage.tasks.executing === 0 &&
this.tasksQueueSize(localWorkerNodeKey) === 0)))
) {
workerUsage.tasks.executing === 0 &&
this.tasksQueueSize(localWorkerNodeKey) === 0)))
) {
- this.destroyWorkerNode(localWorkerNodeKey).catch(EMPTY_FUNCTION)
+ this.destroyWorkerNode(localWorkerNodeKey).catch((error) => {
+ this.emitter?.emit(PoolEvents.error, error)
+ })
}
})
const workerInfo = this.getWorkerInfo(workerNodeKey)
}
})
const workerInfo = this.getWorkerInfo(workerNodeKey)