docs: refine benchmarks README
[poolifier.git] / src / pools / selection-strategies / abstract-worker-choice-strategy.ts
index 8f71b502fd9ee32aa46b4cb9190909ecabc2ff58..a060cea3a5ba4486059fec1f6b45dac515f155e3 100644 (file)
@@ -4,6 +4,7 @@ import type { IPool } from '../pool'
 import type { IWorker } from '../worker'
 import type {
   IWorkerChoiceStrategy,
+  StrategyPolicy,
   TaskStatisticsRequirements,
   WorkerChoiceStrategyOptions
 } from './selection-strategies-types'
@@ -24,6 +25,12 @@ export abstract class AbstractWorkerChoiceStrategy<
    * Toggles finding the last free worker node key.
    */
   private toggleFindLastFreeWorkerNodeKey: boolean = false
+
+  /** @inheritDoc */
+  public readonly strategyPolicy: StrategyPolicy = {
+    useDynamicWorker: false
+  }
+
   /** @inheritDoc */
   public readonly taskStatisticsRequirements: TaskStatisticsRequirements = {
     runTime: {
@@ -170,8 +177,8 @@ export abstract class AbstractWorkerChoiceStrategy<
 
   /**
    * Gets the worker task ELU.
-   * If the task statistics require the ELU, the average ELU is returned.
-   * If the task statistics require the ELU, the median ELU is returned.
+   * If the task statistics require the average ELU, the average ELU is returned.
+   * If the task statistics require the median ELU, the median ELU is returned.
    *
    * @param workerNodeKey - The worker node key.
    * @returns The worker task ELU.