X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FWorkerChoiceStrategyOptions.html;h=116215749eaf8def961455084258b0d77eca0ea7;hb=493f77bdef6d66ad2fcb72b405c805274b24f3db;hp=51fa475c5d82bdcb76d9f46777d02969941271e3;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git diff --git a/docs/interfaces/WorkerChoiceStrategyOptions.html b/docs/interfaces/WorkerChoiceStrategyOptions.html index 51fa475c..11621574 100644 --- a/docs/interfaces/WorkerChoiceStrategyOptions.html +++ b/docs/interfaces/WorkerChoiceStrategyOptions.html @@ -23,7 +23,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:35
  • @@ -32,18 +32,29 @@

    Properties

    Properties

    -
    medRunTime?: boolean
    +
    medRunTime?: boolean

    Use tasks median run time instead of average run time.

    Default Value

    false

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:41
  • +
    + +
    weights?: Record<number, number>
    +

    Worker weights to use for weighted round robin worker selection strategy. +Weight is the tasks maximum average or median runtime in milliseconds.

    + +

    Default Value

    Computed worker weights automatically given the CPU performance.

    +