Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ywqzzy committed Feb 23, 2024
1 parent 7ec44e8 commit c9d2c47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/disttask/framework/taskexecutor/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,12 @@ func (m *Manager) failSubtask(err error, taskID int64, taskExecutor TaskExecutor
func (m *Manager) runWithRetry(fn func() error, msg string) error {
backoffer := backoff.NewExponential(scheduler.RetrySQLInterval, 2, scheduler.RetrySQLMaxInterval)
err1 := handle.RunWithRetry(m.ctx, scheduler.RetrySQLTimes, backoffer, m.logger,
func(ctx context.Context) (bool, error) {
func(_ context.Context) (bool, error) {
return true, fn()
},
)
if err1 != nil {
m.logger.Warn(msg, zap.Error(err1))
}
return err1
}

0 comments on commit c9d2c47

Please sign in to comment.