diff --git a/packages/cache/__tests__/options.test.ts b/packages/cache/__tests__/options.test.ts index 94b0e0eb..6b3e0c27 100644 --- a/packages/cache/__tests__/options.test.ts +++ b/packages/cache/__tests__/options.test.ts @@ -8,7 +8,7 @@ import { const useAzureSdk = true const downloadConcurrency = 8 const timeoutInMs = 30000 -const abortTimeInMs = 2700000 +const abortTimeInMs = 3600000 const uploadConcurrency = 4 const uploadChunkSize = 32 * 1024 * 1024 @@ -28,7 +28,7 @@ test('getDownloadOptions overrides all settings', async () => { useAzureSdk: false, downloadConcurrency: 14, timeoutInMs: 20000, - abortTimeInMs: 2700000 + abortTimeInMs: 3600000 } const actualOptions = getDownloadOptions(expectedOptions) diff --git a/packages/cache/src/internal/downloadUtils.ts b/packages/cache/src/internal/downloadUtils.ts index 992ca787..e4f421f8 100644 --- a/packages/cache/src/internal/downloadUtils.ts +++ b/packages/cache/src/internal/downloadUtils.ts @@ -261,7 +261,7 @@ export async function downloadCacheStorageSDK( downloadProgress.nextSegment(segmentSize) const abortTimeInMs = - options.abortTimeInMs === undefined ? 2700000 : options.abortTimeInMs + options.abortTimeInMs === undefined ? 3600000 : options.abortTimeInMs const result = await promiseWithTimeout( abortTimeInMs, client.downloadToBuffer(segmentStart, segmentSize, { diff --git a/packages/cache/src/options.ts b/packages/cache/src/options.ts index 7473cfe4..b5563268 100644 --- a/packages/cache/src/options.ts +++ b/packages/cache/src/options.ts @@ -50,7 +50,7 @@ export interface DownloadOptions { /** * Time after which download should be aborted if stuck * - * @default 2700000 + * @default 3600000 */ abortTimeInMs?: number } @@ -92,7 +92,7 @@ export function getDownloadOptions(copy?: DownloadOptions): DownloadOptions { useAzureSdk: true, downloadConcurrency: 8, timeoutInMs: 30000, - abortTimeInMs: 2700000 + abortTimeInMs: 3600000 } if (copy) {