mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-19 16:59:08 +08:00
Updated 45 mins abort timeout to 1 hour
This commit is contained in:
parent
fe1ee8b6b4
commit
518f480528
4
packages/cache/__tests__/options.test.ts
vendored
4
packages/cache/__tests__/options.test.ts
vendored
@ -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)
|
||||
|
2
packages/cache/src/internal/downloadUtils.ts
vendored
2
packages/cache/src/internal/downloadUtils.ts
vendored
@ -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, {
|
||||
|
4
packages/cache/src/options.ts
vendored
4
packages/cache/src/options.ts
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user