Skip to content

Commit

Permalink
fixup! send consistent status update to scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwanthgoli committed Jan 9, 2025
1 parent 44b515f commit aa59ac1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/blockbuilder/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ func (i *BlockBuilder) runOne(ctx context.Context, c *kgo.Client, workerID strin
completion.Success = false
}

// remove from inflight jobs to stop sending updates for this job
// to avoid race with completed job requests.
// remove from inflight jobs to stop sending sync requests
i.jobsMtx.Lock()
delete(i.inflightJobs, job.ID())
i.metrics.inflightJobs.Set(float64(len(i.inflightJobs)))
Expand Down

0 comments on commit aa59ac1

Please sign in to comment.