Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
private updateTaskStolenStatisticsWorkerUsage (
workerNodeKey: number,
- workerNode: IWorkerNode<Worker, Data>,
taskName: string
): void {
+ const workerNode = this.workerNodes[workerNodeKey]
if (workerNode?.usage != null) {
++workerNode.usage.tasks.stolen
}
}
this.updateTaskStolenStatisticsWorkerUsage(
destinationWorkerNodeKey,
- destinationWorkerNode,
task.name as string
)
break
}
this.updateTaskStolenStatisticsWorkerUsage(
workerNodeKey,
- workerNode,
task.name as string
)
}