feat: expose the number of strategy retries in pool info
[poolifier.git] / src / pools / abstract-pool.ts
index 2b834158914a93a49aca61cd0ed7f41b2f1e2451..3f6fa98ae373cfb7054747f089ebaa6fb0c84420 100644 (file)
@@ -283,6 +283,7 @@ export abstract class AbstractPool<
       ready: this.ready,
       // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
       strategy: this.opts.workerChoiceStrategy!,
+      strategyRetries: this.workerChoiceStrategyContext?.retriesCount ?? 0,
       minSize: this.minimumNumberOfWorkers,
       maxSize: this.maximumNumberOfWorkers ?? this.minimumNumberOfWorkers,
       ...(this.workerChoiceStrategyContext?.getTaskStatisticsRequirements()