// updateMakespans func updateMakespans(b *build.Build) error { // find all tasks associated with the build tasks, err := task.Find(task.ByBuildId(b.Id)) if err != nil { return err } depPath := FindPredictedMakespan(tasks) return b.UpdateMakespans(depPath.TotalTime, CalculateActualMakespan(tasks)) }