- InternalWorkerChoiceStrategyOptions,
- TaskStatisticsRequirements
+ TaskStatisticsRequirements,
+ WorkerChoiceStrategyOptions
/** @inheritDoc */
public constructor (
pool: IPool<Worker, Data, Response>,
/** @inheritDoc */
public constructor (
pool: IPool<Worker, Data, Response>,
private weightedRoundRobinNextWorkerNodeKey (): number | undefined {
const workerWeight =
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
private weightedRoundRobinNextWorkerNodeKey (): number | undefined {
const workerWeight =
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (this.workerNodeVirtualTaskRunTime < workerWeight) {
this.workerNodeVirtualTaskRunTime =
this.workerNodeVirtualTaskRunTime +
if (this.workerNodeVirtualTaskRunTime < workerWeight) {
this.workerNodeVirtualTaskRunTime =
this.workerNodeVirtualTaskRunTime +