Skip to content

Commit def3a22

Browse files
authored
retry until context timeout (#3537)
1 parent 4927dc0 commit def3a22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

provider/provider.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ func configureDatabricksClient(ctx context.Context, d *schema.ResourceData) (any
279279
cfg.AuthType = newer
280280
}
281281
}
282+
cfg.EnsureResolved()
283+
// Unless set explicitly, the provider will retry indefinitely until context is cancelled
284+
// by either a timeout or interrupt.
285+
if cfg.RetryTimeoutSeconds == 0 {
286+
cfg.RetryTimeoutSeconds = -1
287+
}
282288
client, err := client.New(cfg)
283289
if err != nil {
284290
return nil, diag.FromErr(err)

0 commit comments

Comments
 (0)