From: Jérôme Benoit Date: Fri, 18 Aug 2023 16:12:43 +0000 (+0200) Subject: fix: reset worker choice strategies retries count X-Git-Tag: v2.6.29~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0ffa432eaff319902a2657c5e44374ea109cfb87;p=poolifier.git fix: reset worker choice strategies retries count Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/selection-strategies/worker-choice-strategy-context.ts b/src/pools/selection-strategies/worker-choice-strategy-context.ts index fefc1275..a3e3379c 100644 --- a/src/pools/selection-strategies/worker-choice-strategy-context.ts +++ b/src/pools/selection-strategies/worker-choice-strategy-context.ts @@ -187,6 +187,7 @@ export class WorkerChoiceStrategyContext< `Worker node key chosen is null or undefined after ${this.choiceRetriesCount} retries` ) } + this.choiceRetriesCount = 0 return workerNodeKey }