import {
DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS,
buildInternalWorkerChoiceStrategyOptions
import {
DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS,
buildInternalWorkerChoiceStrategyOptions
import type {
IWorkerChoiceStrategy,
InternalWorkerChoiceStrategyOptions,
MeasurementStatisticsRequirements,
StrategyPolicy,
TaskStatisticsRequirements
import type {
IWorkerChoiceStrategy,
InternalWorkerChoiceStrategyOptions,
MeasurementStatisticsRequirements,
StrategyPolicy,
TaskStatisticsRequirements
protected readonly pool: IPool<Worker, Data, Response>,
protected opts: InternalWorkerChoiceStrategyOptions
) {
protected readonly pool: IPool<Worker, Data, Response>,
protected opts: InternalWorkerChoiceStrategyOptions
) {
- this.setOptions(this.opts)
+ this.opts = buildInternalWorkerChoiceStrategyOptions(
+ this.pool.info.maxSize,
+ this.opts
+ )
+ this.setTaskStatisticsRequirements(this.opts)