feat: add worker choice strategies retry mechanism
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index 563b04b00086a7a31a68f7cb25ca4bde6b513c92..58f36328f98e78dacc1f87fb42914e008f5b7f67 100644 (file)
@@ -70,7 +70,13 @@ export interface MeasurementOptions {
  */
 export interface WorkerChoiceStrategyOptions {
   /**
-   * Measurement to use for worker choice strategy.
+   * Number of worker choice retries to perform if no worker is eligible.
+   *
+   * @defaultValue 6
+   */
+  readonly choiceRetries?: number
+  /**
+   * Measurement to use in worker choice strategy supporting it.
    */
   readonly measurement?: Measurement
   /**