From a926fff3857a6f236c8505448216652a160d6405 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Mon, 1 Apr 2024 20:04:49 +0000 Subject: [PATCH] adding queue back --- packages/artifact/src/internal/upload/zip.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index 2241d2e6..c5fcb881 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -84,7 +84,10 @@ export async function createZipUploadStream( // }) // } // see https://caolan.github.io/async/v3/docs.html#queue for options - const fileUploadQueue = async.queue() // concurrency for uploads automatically set to 1 + const fileUploadQueue = async.queue(function (task, callback) { + core.debug(`adding file to upload queue ${task}`) + callback() + }) // concurrency for uploads automatically set to 1 fileUploadQueue.error(function (err, task) { core.error(`task experienced an error: ${task} ${err}`) @@ -127,7 +130,6 @@ export async function createZipUploadStream( fileUploadQueue.drain(() => { core.debug('all items have been processed') }) - zip.finalize() core.debug(`Finalizing entries`) const bufferSize = getUploadChunkSize()