Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Oct 16, 2023
1 parent b4756e2 commit 6af81e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ func (r *Task) Reflect(client k8s.Client) (err error) {
r.State = Succeeded
r.Terminated = &mark
case core.PodFailed:
r.Error("Error", "Pod failed: %s", pod.Status.ContainerStatuses[0].State.Terminated.Reason)
r.Error(
"Error",
"Pod failed: %s",
pod.Status.ContainerStatuses[0].State.Terminated.Reason)
switch pod.Status.ContainerStatuses[0].State.Terminated.ExitCode {
case 137: // Killed.
if r.Retries < Settings.Hub.Task.Retries {
Expand Down

0 comments on commit 6af81e5

Please sign in to comment.