repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e37786
)
fix: make pool busyness check for worker readiness
author
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 21 Jul 2023 19:42:54 +0000
(21:42 +0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Fri, 21 Jul 2023 19:42:54 +0000
(21:42 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index fa3406a376660c0de442be50778729187fc3fe02..d175cd5b0b8204fdb029ba9e2c35d7b52ac60522 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-617,9
+617,10
@@
export abstract class AbstractPool<
*/
protected internalBusy (): boolean {
return (
- this.workerNodes.findIndex(workerNode => {
- return workerNode.usage.tasks.executing === 0
- }) === -1
+ this.workerNodes.findIndex(
+ workerNode =>
+ workerNode.info.ready && workerNode.usage.tasks.executing === 0
+ ) === -1
)
}