Skip to content

Commit

Permalink
Simplify single task retry strategy check (flyteorg#5584)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Vladyslav Libov <[email protected]>
  • Loading branch information
2 people authored and VladyslavLibov committed Aug 16, 2024
1 parent df03d5a commit ea5fb0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flyteadmin/pkg/manager/impl/util/single_task_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea5fb0e

Please sign in to comment.