Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GMHDBJD committed May 15, 2023
1 parent fc6f1e6 commit 76f8c68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disttask/framework/dispatcher/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type TaskHandle interface {
// GetAllSchedulerIDs gets handles the task's all scheduler instances.
GetAllSchedulerIDs(ctx context.Context, gTaskID int64) ([]string, error)
// GetPreviousSubtaskMetas gets previous subtask metas.
GetPreviousSubtaskMetas(ctx context.Context, gTaskID int64, step int64) ([][]byte, error)
GetPreviousSubtaskMetas(gTaskID int64, step int64) ([][]byte, error)
}

func (d *dispatcher) getRunningGTaskCnt() int {
Expand Down Expand Up @@ -483,7 +483,7 @@ func (d *dispatcher) GetAllSchedulerIDs(ctx context.Context, gTaskID int64) ([]s
return ids, nil
}

func (d *dispatcher) GetPreviousSubtaskMetas(ctx context.Context, gTaskID int64, step int64) ([][]byte, error) {
func (d *dispatcher) GetPreviousSubtaskMetas(gTaskID int64, step int64) ([][]byte, error) {
previousSubtasks, err := d.taskMgr.GetSucceedSubtasksByStep(gTaskID, step)
if err != nil {
logutil.BgLogger().Warn("get previous succeed subtask failed", zap.Int64("ID", gTaskID), zap.Int64("step", step))
Expand Down

0 comments on commit 76f8c68

Please sign in to comment.