feat: add worker choice strategies retry mechanism
[poolifier.git] / src / pools / selection-strategies / interleaved-weighted-round-robin-worker-choice-strategy.ts
index 26f9d909eed84f448e0244042d23dc289a26b96a..c45d6e0bf606f07a0ce792a5f68c2fbe017e2208 100644 (file)
@@ -81,7 +81,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy<
         const workerWeight =
           this.opts.weights?.[workerNodeKey] ?? this.defaultWorkerWeight
         if (
-          this.isWorkerNodeReady(workerNodeKey) &&
+          this.isWorkerNodeEligible(workerNodeKey) &&
           workerWeight >= this.roundWeights[roundIndex]
         ) {
           roundId = roundIndex