1
0
Fork 0

update optional settings for blob client

vmjoseph/download-v4-client-blob
srryan 2023-12-19 12:02:10 -05:00
parent 73babeabef
commit c119fcd773
1 changed files with 3 additions and 4 deletions

View File

@ -42,12 +42,11 @@ async function exists(path: string): Promise<boolean> {
async function streamExtract(url: string, directory: string): Promise<void> { async function streamExtract(url: string, directory: string): Promise<void> {
const blobClient = new BlobClient(url) const blobClient = new BlobClient(url)
const options: BlobDownloadOptions = { const options: BlobDownloadOptions = {
maxRetryRequests: 3, maxRetryRequests: 5,
abortSignal: undefined, onProgress: (progress) => core.info(`Download bytes ${progress.loadedBytes}`)
onProgress: (progress) => core.debug(`Download progress: ${progress.loadedBytes}`)
} }
const response = await blobClient.download(0, 0, options) const response = await blobClient.download(0, undefined, options)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
response.readableStreamBody response.readableStreamBody