From c119fcd773dc830a2310599e790da7efc4364749 Mon Sep 17 00:00:00 2001 From: srryan Date: Tue, 19 Dec 2023 12:02:10 -0500 Subject: [PATCH] update optional settings for blob client --- .../artifact/src/internal/download/download-artifact.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/artifact/src/internal/download/download-artifact.ts b/packages/artifact/src/internal/download/download-artifact.ts index 443eb47b..bc64d51d 100644 --- a/packages/artifact/src/internal/download/download-artifact.ts +++ b/packages/artifact/src/internal/download/download-artifact.ts @@ -42,12 +42,11 @@ async function exists(path: string): Promise { async function streamExtract(url: string, directory: string): Promise { const blobClient = new BlobClient(url) const options: BlobDownloadOptions = { - maxRetryRequests: 3, - abortSignal: undefined, - onProgress: (progress) => core.debug(`Download progress: ${progress.loadedBytes}`) + maxRetryRequests: 5, + onProgress: (progress) => core.info(`Download bytes ${progress.loadedBytes}`) } - const response = await blobClient.download(0, 0, options) + const response = await blobClient.download(0, undefined, options) return new Promise((resolve, reject) => { response.readableStreamBody