Skip to content

Commit

Permalink
disttask: add sleep when subtask == nil (pingcap#47668)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywqzzy authored and wuhuizuo committed Apr 2, 2024
1 parent b566ecc commit 0e70df9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/disttask/framework/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ func (s *BaseScheduler) run(ctx context.Context, task *proto.Task) error {
if newTask.Step != task.Step || newTask.State != task.State {
break
}
time.Sleep(checkTime)
continue
}

Expand Down

0 comments on commit 0e70df9

Please sign in to comment.