diff --git a/workflow/executor/resource.go b/workflow/executor/resource.go index 9f4e5c1fea28..831c8b8cc537 100644 --- a/workflow/executor/resource.go +++ b/workflow/executor/resource.go @@ -143,9 +143,10 @@ func (we *WorkflowExecutor) WaitResource(resourceNamespace string, resourceName } else { log.Warnf("Waiting for resource %s resulted in error %v", resourceName, err) } + return err } - return err + return nil } func checkIfResourceDeleted(resourceName string, resourceNamespace string) bool {