repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @types/node from 20.10.1 to 20.10.2
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
abstract-worker-choice-strategy.ts
diff --git
a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts
b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts
index 86692de92f50c6cc9b1c1c7bcb3e1e960d5693e5..c364933358528ef3ade54a3cc3dd474cf2c2d9d3 100644
(file)
--- a/
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
+++ b/
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
@@
-126,6
+126,15
@@
export abstract class AbstractWorkerChoiceStrategy<
return this.pool.workerNodes[workerNodeKey]?.info?.ready ?? false
}
return this.pool.workerNodes[workerNodeKey]?.info?.ready ?? false
}
+ /**
+ * Check the next worker node readiness.
+ */
+ protected checkNextWorkerNodeReadiness (): void {
+ if (!this.isWorkerNodeReady(this.nextWorkerNodeKey as number)) {
+ delete this.nextWorkerNodeKey
+ }
+ }
+
/**
* Gets the worker node task runtime.
* If the task statistics require the average runtime, the average runtime is returned.
/**
* Gets the worker node task runtime.
* If the task statistics require the average runtime, the average runtime is returned.