Skip to content

Commit

Permalink
check match on enqueueing next job for partition
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-d committed Jan 3, 2025
1 parent 7235e37 commit 3ee784c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/blockbuilder/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (s *BlockScheduler) HandleCompleteJob(ctx context.Context, job *types.Job,
return jobs[i].Job.Partition() >= job.Partition()
})

if nextJob < len(jobs) {
if nextJob < len(jobs) && jobs[nextJob].Job.Partition() == job.Partition() {
_, _, _ = s.idempotentEnqueue(jobs[nextJob])
}

Expand Down

0 comments on commit 3ee784c

Please sign in to comment.