- this.setWorkerTaskRunTime(currentWorker, workerTaskWeight, 0)
- }
- if (
- workerVirtualTaskRunTime <
- (this.workersTaskRunTime.get(currentWorker)?.weight ??
- this.defaultWorkerWeight)
- ) {
- this.previousWorkerIndex = this.currentWorkerIndex
- } else {
- this.previousWorkerIndex = this.currentWorkerIndex
- this.currentWorkerIndex =
- this.pool.workers.length - 1 === this.currentWorkerIndex