1
0
Fork 0

adjusts chunk size

pull/1935/head
Prajjwal 2024-04-15 14:32:00 +05:30
parent 8400948874
commit d0787ac29d
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "github-actions.warp-cache",
"version": "1.0.3",
"version": "1.0.6",
"preview": true,
"description": "Github action to use WarpBuild's in-house cache offering",
"keywords": [

View File

@ -310,7 +310,8 @@ export async function downloadCacheMultipartGCP(
const transferManager = new TransferManager(storage.bucket(bucketName))
await transferManager.downloadFileInChunks(objectName, {
destination: archivePath
destination: archivePath,
chunkSizeBytes: 8 * 1024 * 1024 // 8MB chunk size
})
} catch (error) {
core.debug(`Failed to download cache: ${error}`)