return // only run on root partition
}
effectiveWrite := int(scaleInfo.GetWrite())
// if no target is set yet, get effective count from dynamic config (matches client behavior)
if effectiveWrite == 0 {
effectiveWrite = max(1, pm.config.NumWritePartitions())
}
// we assume that tasks are balanced uniformly across partitions, so if the root has
// seen 1 task then all have seen ~1 task, so the whole queue has seen 'effective'