Skip to content

Commit

Permalink
fix: keep the execution ID for getting next one (#5826)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored and exu committed Sep 6, 2024
1 parent 107890d commit 27ac60e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/tcl/testworkflow-toolkit/commands/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ func buildWorkflowExecution(workflow testworkflowsv1.StepExecuteWorkflow, async
for {
time.Sleep(100 * time.Millisecond)
for i := 0; i < GetExecutionRetryOnFailureMaxAttempts; i++ {
exec, err = c.GetTestWorkflowExecution(exec.Id)
var nextExec testkube.TestWorkflowExecution
nextExec, err = c.GetTestWorkflowExecution(exec.Id)
if err == nil {
exec = nextExec
break
}
if i+1 < GetExecutionRetryOnFailureMaxAttempts {
Expand Down

0 comments on commit 27ac60e

Please sign in to comment.