Skip to content

Commit

Permalink
Parallel ignores concurrency and dependencies, we don't need to validate
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Soltis authored and Greg Soltis committed Jun 2, 2023
1 parent 38a9b88 commit e8e6ede
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,10 @@ func buildTaskGraphEngine(
}

// Check that no tasks would be blocked by a persistent task
if err := engine.ValidatePersistentDependencies(g, rs.Opts.runOpts.Concurrency); err != nil {
return nil, fmt.Errorf("Invalid persistent task configuration:\n%v", err)
if !rs.Opts.runOpts.Parallel {
if err := engine.ValidatePersistentDependencies(g, rs.Opts.runOpts.Concurrency); err != nil {
return nil, fmt.Errorf("Invalid persistent task configuration:\n%v", err)
}
}

return engine, nil
Expand Down

0 comments on commit e8e6ede

Please sign in to comment.