fix: reset worker choice strategies retries count
[poolifier.git] / src / pools / selection-strategies / worker-choice-strategy-context.ts
index fefc1275f5cb7fbacf72d689dfaf8140a733ffac..a3e3379c9ac461fc7cd16c2d32bb8735ca2d50ff 100644 (file)
@@ -187,6 +187,7 @@ export class WorkerChoiceStrategyContext<
         `Worker node key chosen is null or undefined after ${this.choiceRetriesCount} retries`
       )
     }
+    this.choiceRetriesCount = 0
     return workerNodeKey
   }