From f122672208aac94e5deb44814bef6d52d6c4911d Mon Sep 17 00:00:00 2001 From: Eduardo Apolinario Date: Tue, 23 Jul 2024 18:39:29 -0400 Subject: [PATCH] Simplify single task retry strategy check Signed-off-by: Eduardo Apolinario --- flyteadmin/pkg/manager/impl/util/single_task_execution.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flyteadmin/pkg/manager/impl/util/single_task_execution.go b/flyteadmin/pkg/manager/impl/util/single_task_execution.go index b032d21e5f..b415f355ff 100644 --- a/flyteadmin/pkg/manager/impl/util/single_task_execution.go +++ b/flyteadmin/pkg/manager/impl/util/single_task_execution.go @@ -86,9 +86,7 @@ func CreateOrGetWorkflowModel( }) var retryStrategy *core.RetryStrategy - if task.GetClosure().GetCompiledTask().GetTemplate() != nil && - task.GetClosure().GetCompiledTask().GetTemplate().GetMetadata() != nil && - task.GetClosure().GetCompiledTask().GetTemplate().GetMetadata().GetRetries() != nil { + if task.GetClosure().GetCompiledTask().GetTemplate().GetMetadata().GetRetries() != nil { retryStrategy = task.GetClosure().GetCompiledTask().GetTemplate().GetMetadata().GetRetries() } else { retryStrategy = &defaultRetryStrategy