Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
workerNode.workerUsage.waitTime.aggregate
if (workerTime === 0) {
this.nextWorkerNodeId = workerNodeKey
- return true
+ break
} else if (workerTime < minTime) {
minTime = workerTime
this.nextWorkerNodeId = workerNodeKey
const workerElu = workerUsage.elu?.active.aggregate ?? 0
if (workerElu === 0) {
this.nextWorkerNodeId = workerNodeKey
- return true
+ break
} else if (workerElu < minWorkerElu) {
minWorkerElu = workerElu
this.nextWorkerNodeId = workerNodeKey
workerTaskStatistics.queued
if (workerTasks === 0) {
this.nextWorkerNodeId = workerNodeKey
- return true
+ break
} else if (workerTasks < minNumberOfTasks) {
minNumberOfTasks = workerTasks
this.nextWorkerNodeId = workerNodeKey