From 8335b69197409b65b1af227801655071dae76219 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Mon, 15 Feb 2021 18:32:40 +0100 Subject: [PATCH] Fix break/continue --- pkg/wfexec/session.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/wfexec/session.go b/pkg/wfexec/session.go index 0ad8156e5..ba657147a 100644 --- a/pkg/wfexec/session.go +++ b/pkg/wfexec/session.go @@ -561,7 +561,7 @@ func (s *Session) exec(ctx context.Context, st *State) { // jump out of the loop next = st.loopEnd() - s.qErr <- fmt.Errorf("session %d step %d expliciy brake out of the loop", s.id, st.step.ID()) + log.Debug("breaking from iterator") case *loopContinue: if currLoop == nil { @@ -571,7 +571,7 @@ func (s *Session) exec(ctx context.Context, st *State) { // jump back to iterator next = Steps{currLoop.Iterator()} - s.qErr <- fmt.Errorf("session %d step %d expliciy continue with next iteration", s.id, st.step.ID()) + log.Debug("continuing with next iteration") case *partial: // *partial is returned when step needs to be executed again