mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 07:38:37 +08:00 
			
		
		
		
	Fine tune blob uploads
This commit is contained in:
		
							parent
							
								
									53d0c08d51
								
							
						
					
					
						commit
						18fe6e3304
					
				
							
								
								
									
										2
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
					function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        // Override UploadOptions to force the use of Azure
 | 
					        // 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 compressionMethod = yield utils.getCompressionMethod();
 | 
				
			||||||
        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
					        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
				
			||||||
        let cacheId = -1;
 | 
					        let cacheId = -1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
					function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        // Override UploadOptions to force the use of Azure
 | 
					        // 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 compressionMethod = yield utils.getCompressionMethod();
 | 
				
			||||||
        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
					        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
				
			||||||
        let cacheId = -1;
 | 
					        let cacheId = -1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
					function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        // Override UploadOptions to force the use of Azure
 | 
					        // 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 compressionMethod = yield utils.getCompressionMethod();
 | 
				
			||||||
        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
					        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
				
			||||||
        let cacheId = -1;
 | 
					        let cacheId = -1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -6231,7 +6231,7 @@ function saveCacheV1(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
					function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
 | 
				
			||||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
					    return __awaiter(this, void 0, void 0, function* () {
 | 
				
			||||||
        // Override UploadOptions to force the use of Azure
 | 
					        // 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 compressionMethod = yield utils.getCompressionMethod();
 | 
				
			||||||
        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
					        const twirpClient = cacheTwirpClient.internalCacheTwirpClient();
 | 
				
			||||||
        let cacheId = -1;
 | 
					        let cacheId = -1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user