From 1b7c76ee9f662eb1f1da48de8cbf6603473095e2 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Mon, 10 Jun 2024 15:16:50 -0700 Subject: [PATCH] Pod snapshot best effort when canceled. Signed-off-by: Jeff Ortel --- task/manager.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/task/manager.go b/task/manager.go index f93a31da2..bfd659652 100644 --- a/task/manager.go +++ b/task/manager.go @@ -255,10 +255,10 @@ func (m *Manager) Cancel(db *gorm.DB, id uint) (err error) { } pod, found := m.cluster.pods[path.Base(task.Pod)] if found { - err = m.podSnapshot(task, pod) - if err != nil { - return - } + snErr := m.podSnapshot(task, pod) + Log.Error( + snErr, + "Snapshot not created.") } err = task.Cancel(m.Client) if err != nil {