Skip to content

Commit bba878a

Browse files
committed
fix
1 parent 168dd93 commit bba878a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/pipeline/executors/ArgoWorkflowExecutor.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@ func (impl *ArgoWorkflowExecutorImpl) TerminateDanglingWorkflow(workflowGenerate
110110
}
111111
}
112112
if len(wfToDelete.Name) > 0 {
113-
_, err = wfClient.Get(context.Background(), wfToDelete.Name, v1.GetOptions{})
114-
if err != nil {
115-
impl.logger.Errorw("cannot find workflow", "name", wfToDelete.Name, "err", err)
116-
return errors.New("cannot find workflow " + wfToDelete.Name)
117-
}
118113
err = util.TerminateWorkflow(context.Background(), wfClient, wfToDelete.Name)
119114
if err != nil {
120115
impl.logger.Errorw("error in terminating argo executor workflow", "name", wfToDelete.Name, "err", err)

0 commit comments

Comments
 (0)