Skip to content

Commit

Permalink
fix run gen
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed Apr 7, 2024
1 parent 0ef639d commit 4ccc8aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions scheduler/gen_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func (e *runGenScheduler) scheduleRunGeneratedFiles(ctx context.Context, target
})

for _, file := range files {
file := file
j := worker2.NewAction(worker2.ActionConfig{
Name: fmt.Sprintf("rungen %v file %v", target.Addr, file.RelRoot()),
Ctx: ctx,
Expand Down
4 changes: 4 additions & 0 deletions worker2/dep_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ type Stats struct {
func CollectStats(a Dep) Stats {
s := Stats{}
a.DeepDo(func(dep Dep) {
if _, ok := dep.(*Group); ok {
return
}

atomic.AddUint64(&s.All, 1)

j := dep.getExecution()
Expand Down

0 comments on commit 4ccc8aa

Please sign in to comment.