Skip to content

Commit 141dbc7

Browse files
Extend timeout for database branch readiness checks
Increase to 10 minutes to handle for larger multi keyspace branches
1 parent 1640432 commit 141dbc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/cmd/branch/create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ func CreateCmd(ch *cmdutil.Helper) *cobra.Command {
226226
return cmd
227227
}
228228

229-
// waitUntilReady waits until the given database branch is ready. It times out after 3 minutes.
229+
// waitUntilReady waits until the given database branch is ready. It times out after 10 minutes.
230230
func waitUntilReady(ctx context.Context, client *ps.Client, printer *printer.Printer, debug bool, getReq *ps.GetDatabaseBranchRequest) error {
231-
ctx, cancel := context.WithTimeout(ctx, 3*time.Minute)
231+
ctx, cancel := context.WithTimeout(ctx, 10*time.Minute)
232232
defer cancel()
233233

234234
ticker := time.NewTicker(time.Second)
@@ -254,7 +254,7 @@ func waitUntilReady(ctx context.Context, client *ps.Client, printer *printer.Pri
254254
}
255255

256256
func waitUntilPostgresReady(ctx context.Context, client *ps.Client, printer *printer.Printer, debug bool, getReq *ps.GetPostgresBranchRequest) error {
257-
ctx, cancel := context.WithTimeout(ctx, 3*time.Minute)
257+
ctx, cancel := context.WithTimeout(ctx, 10*time.Minute)
258258
defer cancel()
259259

260260
ticker := time.NewTicker(time.Second)

0 commit comments

Comments
 (0)