Skip to content

Commit

Permalink
feat: added debug info in case of pod disaster (#5433) (#5434)
Browse files Browse the repository at this point in the history
  • Loading branch information
exu authored May 15, 2024
1 parent 4a9fc8e commit 1d46fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/executor/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,8 @@ func GetPodErrorMessage(ctx context.Context, client kubernetes.Interface, pod *c
}

if message == "" {
message = fmt.Sprintf("execution pod %s failed", pod.Name)
statusStr := pod.Status.String()
message = fmt.Sprintf("execution pod %s failed, status: %s", pod.Name, statusStr)
}

return message
Expand Down

0 comments on commit 1d46fc3

Please sign in to comment.