Make S3's retry limit a ENV variable (#23215)

This commit is contained in:
Isa S 2024-06-07 15:54:55 +02:00 committed by GitHub
parent 9e9613b286
commit 773283ffb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ if ENV['S3_ENABLED'] == 'true'
http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '5' }.to_i, http_open_timeout: ENV.fetch('S3_OPEN_TIMEOUT') { '5' }.to_i,
http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '5' }.to_i, http_read_timeout: ENV.fetch('S3_READ_TIMEOUT') { '5' }.to_i,
http_idle_timeout: 5, http_idle_timeout: 5,
retry_limit: 0, retry_limit: ENV.fetch('S3_RETRY_LIMIT'){ '0' }.to_i,
} }
) )