Skip to content

Commit

Permalink
chore(framework): add logs when subtask is finished (#7952) (#7953)
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 26, 2024
1 parent 59d0954 commit e3c0b2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/core/runner/run_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ func RunPluginSubTasks(
logger.Info("subtask %s already finished previously", subtaskMeta.Name)
} else {
logger.Info("executing subtask %s", subtaskMeta.Name)
start := time.Now()
err = runSubtask(basicRes, subtaskCtx, task.ID, subtaskNumber, subtaskMeta.EntryPoint)
logger.Info("subtask %s finished in %s", subtaskMeta.Name, time.Since(start).Milliseconds())
if err != nil {
err = errors.SubtaskErr.Wrap(err, fmt.Sprintf("subtask %s ended unexpectedly", subtaskMeta.Name), errors.WithData(&subtaskMeta))
logger.Error(err, "")
Expand Down

0 comments on commit e3c0b2e

Please sign in to comment.