Skip to content

Commit

Permalink
Require building tasks to complete before shutdown (#3275)
Browse files Browse the repository at this point in the history
* Require building tasks to complete before we shut down the cache

* ok
  • Loading branch information
peterebden authored Oct 11, 2024
1 parent fa65616 commit 5e8fab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plz/plz.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ func Run(targets, preTargets []core.BuildLabel, state *core.BuildState, config *
}()
go func() {
for task := range actions {
wg.Add(1)
go func(task core.Task) {
defer wg.Done()
remote := anyRemote && !task.Target.Local
if remote {
remoteLimiter.Acquire()
Expand Down

0 comments on commit 5e8fab1

Please sign in to comment.