1
0
Fork 0

Updated 45 mins abort timeout to 1 hour

pull/1140/head
Sankalp Kotewar 2022-08-05 05:44:59 +00:00
parent fe1ee8b6b4
commit 518f480528
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import {
const useAzureSdk = true const useAzureSdk = true
const downloadConcurrency = 8 const downloadConcurrency = 8
const timeoutInMs = 30000 const timeoutInMs = 30000
const abortTimeInMs = 2700000 const abortTimeInMs = 3600000
const uploadConcurrency = 4 const uploadConcurrency = 4
const uploadChunkSize = 32 * 1024 * 1024 const uploadChunkSize = 32 * 1024 * 1024
@ -28,7 +28,7 @@ test('getDownloadOptions overrides all settings', async () => {
useAzureSdk: false, useAzureSdk: false,
downloadConcurrency: 14, downloadConcurrency: 14,
timeoutInMs: 20000, timeoutInMs: 20000,
abortTimeInMs: 2700000 abortTimeInMs: 3600000
} }
const actualOptions = getDownloadOptions(expectedOptions) const actualOptions = getDownloadOptions(expectedOptions)

View File

@ -261,7 +261,7 @@ export async function downloadCacheStorageSDK(
downloadProgress.nextSegment(segmentSize) downloadProgress.nextSegment(segmentSize)
const abortTimeInMs = const abortTimeInMs =
options.abortTimeInMs === undefined ? 2700000 : options.abortTimeInMs options.abortTimeInMs === undefined ? 3600000 : options.abortTimeInMs
const result = await promiseWithTimeout( const result = await promiseWithTimeout(
abortTimeInMs, abortTimeInMs,
client.downloadToBuffer(segmentStart, segmentSize, { client.downloadToBuffer(segmentStart, segmentSize, {

View File

@ -50,7 +50,7 @@ export interface DownloadOptions {
/** /**
* Time after which download should be aborted if stuck * Time after which download should be aborted if stuck
* *
* @default 2700000 * @default 3600000
*/ */
abortTimeInMs?: number abortTimeInMs?: number
} }
@ -92,7 +92,7 @@ export function getDownloadOptions(copy?: DownloadOptions): DownloadOptions {
useAzureSdk: true, useAzureSdk: true,
downloadConcurrency: 8, downloadConcurrency: 8,
timeoutInMs: 30000, timeoutInMs: 30000,
abortTimeInMs: 2700000 abortTimeInMs: 3600000
} }
if (copy) { if (copy) {