Skip to content

Commit a526d24

Browse files
committed
Improve retries constants
1 parent 7b976d1 commit a526d24

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

operator/pkg/operator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ type Operator struct {
6767
const (
6868
// This time out will even kill the retries, so it should be enough
6969
// for them to be completed in most cases
70-
BatchDownloadTimeout = 5 * time.Minute
71-
BatchDownloadMaxRetries = 3
70+
BatchDownloadTimeout = 3 * time.Minute
71+
BatchDownloadMaxRetries = 4
7272
BatchDownloadRetryDelay = 5 * time.Second
7373
UnverifiedBatchOffset = 100
7474
)

operator/pkg/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (o *Operator) getBatchFromDataService(ctx context.Context, batchURL string,
2020

2121
// Create HTTP client with response header timeout to prevent hanging on silent servers
2222
transport := http.DefaultTransport.(*http.Transport).Clone()
23-
transport.ResponseHeaderTimeout = 60 * time.Second
23+
transport.ResponseHeaderTimeout = 15 * time.Second
2424
client := &http.Client{
2525
Transport: transport,
2626
}

0 commit comments

Comments
 (0)