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