Merge pull request #28543 from overleaf/msm-disable-retries-s3
[object-persistor] fix disable retries on PutObjectCommand GitOrigin-RevId: 7a812385e70781939f21325572c0eedb856e734f
This commit is contained in:
@@ -631,10 +631,14 @@ class S3Persistor extends AbstractPersistor {
|
||||
|
||||
// maxRetries has been moved to maxAttempts in aws-sdk v3,
|
||||
// we're keeping the existing setting for backwards compatibility
|
||||
if (!noRetries && this.settings.maxRetries) {
|
||||
if (this.settings.maxRetries) {
|
||||
options.maxAttempts = this.settings.maxRetries + 1
|
||||
}
|
||||
|
||||
if (noRetries) {
|
||||
options.maxAttempts = 1
|
||||
}
|
||||
|
||||
const requestHandlerParams = this.settings.httpOptions || {}
|
||||
|
||||
if (sslEnabled && this.settings.ca) {
|
||||
|
||||
Reference in New Issue
Block a user