Skip to content

Commit

Permalink
adding queue back
Browse files Browse the repository at this point in the history
  • Loading branch information
vmjoseph committed Apr 1, 2024
1 parent a2a8a72 commit a926fff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/artifact/src/internal/upload/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit a926fff

Please sign in to comment.