Skip to content

Commit

Permalink
sleep 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Nov 9, 2023
1 parent b54f5ad commit 6b388ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/preflight/preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"os"
"path/filepath"
"time"

"github.com/pkg/errors"
apptypes "github.com/replicatedhq/kots/pkg/app/types"
Expand Down Expand Up @@ -277,6 +278,9 @@ func maybeDeployFirstVersion(appID string, sequence int64, preflightResults *typ
return false, errors.Wrap(err, "failed to deploy version")
}

// this ensures the version status is updated before returning
time.Sleep(time.Second)

return true, nil
}

Expand Down

0 comments on commit 6b388ee

Please sign in to comment.