Skip to content

Commit

Permalink
🐛 Fix task reaper using TTL.Failed. (#734)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel authored Jul 26, 2024
1 parent 15b11a8 commit 8bb3c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reaper/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8bb3c09

Please sign in to comment.