Skip to content

Commit

Permalink
Update retryOnAwsCode to Five Minutes (#999)
Browse files Browse the repository at this point in the history
Users have been experiencing errors being returned on successful spaces create requests that take longer than 1 minute. Github issue is #996 

The only child function that `resourceDigitalOceanBucketCreate` using a 1 minute timeout is the `retryOnAwsCode` so updating that to 5 minutes to hopefully mitigate the errors on successful bucket creations.
  • Loading branch information
danaelhe committed Jun 20, 2023
1 parent ee854f5 commit 073b8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digitalocean/spaces/resource_spaces_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ func BucketEndpoint(region string) string {

func retryOnAwsCode(code string, f func() (interface{}, error)) (interface{}, error) {
var resp interface{}
err := resource.Retry(1*time.Minute, func() *resource.RetryError {
err := resource.Retry(5*time.Minute, func() *resource.RetryError {
var err error
resp, err = f()
if err != nil {
Expand Down

0 comments on commit 073b8d5

Please sign in to comment.