Skip to content

Commit

Permalink
fix(framework): fix sub task number (#7967) (#7968)
Browse files Browse the repository at this point in the history
Co-authored-by: Lynwee <[email protected]>
  • Loading branch information
github-actions[bot] and d4x1 authored Aug 27, 2024
1 parent cc72500 commit 7ffe3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/runner/run_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ func RunPluginSubTasks(
taskCtx.SetProgress(0, steps)
subtaskNumber := 0
for _, subtaskMeta := range subtaskMetas {
subtaskNumber++
subtaskCtx, err := taskCtx.SubTaskContext(subtaskMeta.Name)
if err != nil {
// sth went wrong
return errors.Default.Wrap(err, fmt.Sprintf("error getting context subtask %s", subtaskMeta.Name))
}
subtaskNumber++
if subtaskCtx == nil {
// subtask was disabled
continue
Expand Down

0 comments on commit 7ffe3ac

Please sign in to comment.