Skip to content

Commit

Permalink
Refresh intent workflow to improve reliability of streaming deploy lo…
Browse files Browse the repository at this point in the history
…gs (#204)
  • Loading branch information
BSick7 authored Dec 17, 2024
1 parent b70f3ec commit bbe044b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.0.134 (Dec 17, 2024)
* Improve reliability of streaming deploy logs when performing a deployment.

# 0.0.133 (Dec 11, 2024)
* Added ability for users with `software_engineer` to access logs, metrics, and status.
* Added support for GCP static sites.
Expand Down
6 changes: 6 additions & 0 deletions cmd/wait_for.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ func waitForRunningIntentWorkflow(ctx context.Context, cfg api.Config, iw types.
for {
switch cur.Status {
case types.IntentWorkflowStatusRunning:
updated, err := client.IntentWorkflows().Get(ctx, iw.StackId, iw.Id)
if err != nil {
return cur, fmt.Errorf("error waiting for deployment: %w", err)
} else if updated != nil {
cur = *updated
}
return cur, nil
case types.IntentWorkflowStatusCompleted:
return cur, nil
Expand Down

0 comments on commit bbe044b

Please sign in to comment.