From 6af81e560405c615da57b64552eb0a62994e9186 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Mon, 16 Oct 2023 10:41:43 -0700 Subject: [PATCH] checkpoint Signed-off-by: Jeff Ortel --- task/manager.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/task/manager.go b/task/manager.go index e7a7d2a38..172fc0f8b 100644 --- a/task/manager.go +++ b/task/manager.go @@ -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 {