mirror of https://github.com/actions/toolkit
sets auto retry to false
parent
f120696e60
commit
81041b245a
|
@ -250,7 +250,11 @@ export async function downloadCacheSingleThread(
|
||||||
const oauth2Client = new OAuth2Client()
|
const oauth2Client = new OAuth2Client()
|
||||||
oauth2Client.setCredentials({access_token: gcsToken})
|
oauth2Client.setCredentials({access_token: gcsToken})
|
||||||
const storage = new Storage({
|
const storage = new Storage({
|
||||||
authClient: oauth2Client
|
authClient: oauth2Client,
|
||||||
|
retryOptions: {
|
||||||
|
autoRetry: false,
|
||||||
|
maxRetries: 1
|
||||||
|
}
|
||||||
})
|
})
|
||||||
await downloadCacheGCP(storage, archiveLocation, archivePath)
|
await downloadCacheGCP(storage, archiveLocation, archivePath)
|
||||||
break
|
break
|
||||||
|
|
|
@ -330,8 +330,6 @@ export async function downloadCacheGCP(
|
||||||
const {bucketName, objectName} =
|
const {bucketName, objectName} =
|
||||||
utils.retrieveGCSBucketAndObjectName(archiveLocation)
|
utils.retrieveGCSBucketAndObjectName(archiveLocation)
|
||||||
|
|
||||||
storage.retryOptions.totalTimeout = 120
|
|
||||||
|
|
||||||
await storage.bucket(bucketName).file(objectName).download({
|
await storage.bucket(bucketName).file(objectName).download({
|
||||||
destination: archivePath,
|
destination: archivePath,
|
||||||
validation: 'crc32c'
|
validation: 'crc32c'
|
||||||
|
|
Loading…
Reference in New Issue