fix: extend PGSQL fail wait cycle #113

Merged
marcel.henselin merged 1 commit from fix/longer_fail_wait_cycle into main 2026-05-07 07:55:51 +00:00

View file

@ -61,7 +61,7 @@ func CreateInstanceWaitHandler(
maxWait := time.Minute * 90 maxWait := time.Minute * 90
startTime := time.Now() startTime := time.Now()
extendedTimeout := 0 extendedTimeout := 0
maxFailedCount := 3 maxFailedCount := 10
failedCount := 0 failedCount := 0
handler := wait.New( handler := wait.New(
@ -129,7 +129,7 @@ func CreateInstanceWaitHandler(
}, },
) )
var waitCounter int64 = 1 var waitCounter int64 = 1
maxWaitInt := big.NewInt(7) maxWaitInt := big.NewInt(10)
n, randErr := rand.Int(rand.Reader, maxWaitInt) n, randErr := rand.Int(rand.Reader, maxWaitInt)
if randErr == nil { if randErr == nil {
waitCounter = n.Int64() + 1 waitCounter = n.Int64() + 1