From deb06177bb2d14bee65d8977e24f55249f621311 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Mon, 2 Dec 2024 07:14:58 -0800 Subject: [PATCH] Tune upload options --- dist/restore-only/index.js | 4 ++-- dist/restore/index.js | 4 ++-- dist/save-only/index.js | 4 ++-- dist/save/index.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index 7813066..3c4da2b 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) { function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { // Override UploadOptions to force the use of Azure - options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); + options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true }); const compressionMethod = yield utils.getCompressionMethod(); const twirpClient = cacheTwirpClient.internalCacheTwirpClient(); let cacheId = -1; @@ -9913,7 +9913,7 @@ function getUploadOptions(copy) { const result = { useAzureSdk: false, uploadConcurrency: 4, - uploadChunkSize: 64 * 1024 * 1024 + uploadChunkSize: 32 * 1024 * 1024 }; if (copy) { if (typeof copy.useAzureSdk === 'boolean') { diff --git a/dist/restore/index.js b/dist/restore/index.js index 335a3a3..8e97b3b 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) { function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { // Override UploadOptions to force the use of Azure - options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); + options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true }); const compressionMethod = yield utils.getCompressionMethod(); const twirpClient = cacheTwirpClient.internalCacheTwirpClient(); let cacheId = -1; @@ -9913,7 +9913,7 @@ function getUploadOptions(copy) { const result = { useAzureSdk: false, uploadConcurrency: 4, - uploadChunkSize: 64 * 1024 * 1024 + uploadChunkSize: 32 * 1024 * 1024 }; if (copy) { if (typeof copy.useAzureSdk === 'boolean') { diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 3b3aab5..51ed523 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) { function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { // Override UploadOptions to force the use of Azure - options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); + options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true }); const compressionMethod = yield utils.getCompressionMethod(); const twirpClient = cacheTwirpClient.internalCacheTwirpClient(); let cacheId = -1; @@ -9913,7 +9913,7 @@ function getUploadOptions(copy) { const result = { useAzureSdk: false, uploadConcurrency: 4, - uploadChunkSize: 64 * 1024 * 1024 + uploadChunkSize: 32 * 1024 * 1024 }; if (copy) { if (typeof copy.useAzureSdk === 'boolean') { diff --git a/dist/save/index.js b/dist/save/index.js index 3018d9d..48a3944 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) { function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { return __awaiter(this, void 0, void 0, function* () { // Override UploadOptions to force the use of Azure - options = Object.assign(Object.assign({}, options), { useAzureSdk: true }); + options = Object.assign(Object.assign({}, options), { uploadChunkSize: 64 * 1024 * 1024, uploadConcurrency: 8, useAzureSdk: true }); const compressionMethod = yield utils.getCompressionMethod(); const twirpClient = cacheTwirpClient.internalCacheTwirpClient(); let cacheId = -1; @@ -9913,7 +9913,7 @@ function getUploadOptions(copy) { const result = { useAzureSdk: false, uploadConcurrency: 4, - uploadChunkSize: 64 * 1024 * 1024 + uploadChunkSize: 32 * 1024 * 1024 }; if (copy) { if (typeof copy.useAzureSdk === 'boolean') {