Skip to content

Commit

Permalink
fix: log retry logic (#6211)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin authored Mar 3, 2025
1 parent f40a951 commit 2320f92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/kubectl-testkube/commands/testworkflows/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ func watchTestWorkflowLogs(id string, signature []testkube.TestWorkflowSignature

// Check if result stream is closed and if execution is finished
result = printTestWorkflowLogs(signature, notifications)
if result != nil && result.Status != nil && *result.Status != testkube.RUNNING_TestWorkflowStatus {
if result != nil && result.Status != nil &&
(*result.Status == testkube.QUEUED_TestWorkflowStatus || *result.Status == testkube.RUNNING_TestWorkflowStatus) {
return fmt.Errorf("test workflow execution is not finished but channel is closed")
}

Expand Down

0 comments on commit 2320f92

Please sign in to comment.