Skip to content

Commit

Permalink
Merge pull request #151 from abhinavdahiya/fix_max_workers_init
Browse files Browse the repository at this point in the history
cvo: fix max_workers to number of nodes in graph
  • Loading branch information
openshift-merge-robot authored Apr 1, 2019
2 parents fc1c824 + 881d0eb commit b72cf63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cvo/sync_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ func (w *SyncWorker) apply(ctx context.Context, payloadUpdate *payload.Update, w
graph := payload.NewTaskGraph(tasks)
graph.Split(payload.SplitOnJobs)
if work.State == payload.InitializingPayload {
// get the payload out via brute force
maxWorkers = len(tasks)
graph.Parallelize(payload.FlattenByNumberAndComponent)
// get the payload out via brute force
maxWorkers = len(graph.Nodes)
} else {
graph.Parallelize(payload.ByNumberAndComponent)
}
Expand Down

0 comments on commit b72cf63

Please sign in to comment.