From 96282c7d59be296868ae8620e8b2d6eb1fc1c77d Mon Sep 17 00:00:00 2001 From: isubasinghe Date: Mon, 28 Oct 2024 22:40:32 +1100 Subject: [PATCH] fix: inverted logic Signed-off-by: isubasinghe --- workflow/controller/taskresult.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/controller/taskresult.go b/workflow/controller/taskresult.go index 1a5f8fa0906c..d806272dae77 100644 --- a/workflow/controller/taskresult.go +++ b/workflow/controller/taskresult.go @@ -55,7 +55,7 @@ func (wfc *WorkflowController) newWorkflowTaskResultInformer() cache.SharedIndex } func recentlyDeleted(node *wfv1.NodeStatus) bool { - return time.Since(node.StartedAt.Time) >= envutil.LookupEnvDurationOr("RECENTLY_DELETED_POD_DURATION", 2*time.Minute) + return time.Since(node.StartedAt.Time) <= envutil.LookupEnvDurationOr("RECENTLY_DELETED_POD_DURATION", 2*time.Minute) } func (woc *wfOperationCtx) taskResultReconciliation() {