fix: test for worker file existence
[poolifier.git] / src / pools / selection-strategies / interleaved-weighted-round-robin-worker-choice-strategy.ts
index 78960f1063c81f1c616d8fb9b868061cdc6598c5..907bd911d6e607966bfddc2cd02087c11cdab44f 100644 (file)
@@ -80,6 +80,7 @@ export class InterleavedWeightedRoundRobinWorkerChoiceStrategy<
       ) {
         const workerWeight =
           this.opts.weights?.[workerNodeKey] ?? this.defaultWorkerWeight
+        // if (this.isWorkerNodeReady(workerNodeKey) && workerWeight >= this.roundWeights[roundIndex]) {
         if (workerWeight >= this.roundWeights[roundIndex]) {
           roundId = roundIndex
           workerNodeId = workerNodeKey