1
0
Fork 0

sets auto retry to false

pull/1935/head
Prajjwal 2024-05-17 18:21:21 +05:30
parent f120696e60
commit 81041b245a
2 changed files with 5 additions and 3 deletions

View File

@ -250,7 +250,11 @@ export async function downloadCacheSingleThread(
const oauth2Client = new OAuth2Client()
oauth2Client.setCredentials({access_token: gcsToken})
const storage = new Storage({
authClient: oauth2Client
authClient: oauth2Client,
retryOptions: {
autoRetry: false,
maxRetries: 1
}
})
await downloadCacheGCP(storage, archiveLocation, archivePath)
break

View File

@ -330,8 +330,6 @@ export async function downloadCacheGCP(
const {bucketName, objectName} =
utils.retrieveGCSBucketAndObjectName(archiveLocation)
storage.retryOptions.totalTimeout = 120
await storage.bucket(bucketName).file(objectName).download({
destination: archivePath,
validation: 'crc32c'