-import type { IWorker } from '../worker'
-import type { IPool } from '../pool'
-import { DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS } from '../../utils'
-import { AbstractWorkerChoiceStrategy } from './abstract-worker-choice-strategy'
+import type { IWorker } from '../worker.js'
+import type { IPool } from '../pool.js'
+import { DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS } from '../../utils.js'
+import { AbstractWorkerChoiceStrategy } from './abstract-worker-choice-strategy.js'
import type {
IWorkerChoiceStrategy,
InternalWorkerChoiceStrategyOptions,
TaskStatisticsRequirements
-} from './selection-strategies-types'
+} from './selection-strategies-types.js'
/**
* Selects the next worker with an interleaved weighted round robin scheduling algorithm.
/**
* Round weights.
*/
- private roundWeights!: number[]
+ private roundWeights: number[]
/**
* Worker node id.
*/
opts: InternalWorkerChoiceStrategyOptions
) {
super(pool, opts)
- // this.setOptions(this.opts)
this.setTaskStatisticsRequirements(this.opts)
this.roundWeights = this.getRoundWeights()
}