From 1941f46ef9b34c041cd259eef9f5284fa757a9ea Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Tue, 23 Jul 2024 05:00:13 -0700 Subject: [PATCH] :bug: Fix task reaper using TTL.Failed. Signed-off-by: Jeff Ortel --- reaper/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reaper/task.go b/reaper/task.go index b78f06a17..3f73432f1 100644 --- a/reaper/task.go +++ b/reaper/task.go @@ -113,7 +113,7 @@ func (r *TaskReaper) Run() { if m.Terminated != nil { mark = *m.Terminated } - if m.TTL.Succeeded > 0 { + if m.TTL.Failed > 0 { d := time.Duration(m.TTL.Failed) * Unit if time.Since(mark) > d { r.delete(m)