Skip to content

Commit

Permalink
Set AZBlob pipeline retry policy (#6)
Browse files Browse the repository at this point in the history
...to prevent timeouts when downloading large files from Azure.

See https://app.asana.com/0/407661412026889/1200881972835514/f for more
details.

See Azure/azure-storage-blob-go#60 for a
related issue.
  • Loading branch information
stijlist committed Oct 5, 2021
1 parent 2d0123d commit 9bfeeba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/backend_azblob.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ func NewAZBlob(container string, config *AZBlobConfig) (*AZBlob, error) {
LogWarningIfTryOverThreshold: time.Duration(-1),
},
HTTPSender: newAzBlobHTTPClientFactory(),
Retry: azblob.RetryOptions{
TryTimeout: 60 * time.Minute,
},
}

p := azblob.NewPipeline(azblob.NewAnonymousCredential(), po)
Expand Down

0 comments on commit 9bfeeba

Please sign in to comment.