1
0
Fork 0

adding queue back

pull/1700/head
Vallie Joseph 2024-04-01 20:04:49 +00:00
parent a2a8a724c2
commit a926fff385
1 changed files with 4 additions and 2 deletions

View File

@ -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()