fix: reset worker choice strategies retries count
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 18 Aug 2023 16:12:43 +0000 (18:12 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 18 Aug 2023 16:12:43 +0000 (18:12 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
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
   }