mirror of https://github.com/actions/toolkit
adding asnyc handler back
parent
4778aebf5b
commit
23039a4345
|
@ -84,7 +84,7 @@ export async function createZipUploadStream(
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
const fileUploadQueue = async.queue(function (task, callback) {
|
const fileUploadQueue = async.queue(function (task, callback) {
|
||||||
core.info(`hello ${task.name}`)
|
core.debug(`adding file to upload queue ${task}`)
|
||||||
callback()
|
callback()
|
||||||
}, 1)
|
}, 1)
|
||||||
|
|
||||||
|
@ -126,9 +126,6 @@ export async function createZipUploadStream(
|
||||||
|
|
||||||
core.debug(`Starting the finalizing of all entries`)
|
core.debug(`Starting the finalizing of all entries`)
|
||||||
|
|
||||||
for (const item of fileUploadQueue) {
|
|
||||||
core.debug(`Starting the finalizing ${item}`)
|
|
||||||
}
|
|
||||||
fileUploadQueue.drain(() => {
|
fileUploadQueue.drain(() => {
|
||||||
core.debug('all items have been processed')
|
core.debug('all items have been processed')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue