mirror of https://github.com/actions/toolkit
Adding missing progress time
parent
98ce947a6c
commit
0d3d3bbb40
|
@ -24,7 +24,7 @@ export async function uploadZipToBlobStorage(
|
||||||
zipUploadStream: ZipUploadStream
|
zipUploadStream: ZipUploadStream
|
||||||
): Promise<BlobUploadResponse> {
|
): Promise<BlobUploadResponse> {
|
||||||
let uploadByteCount = 0
|
let uploadByteCount = 0
|
||||||
const lastProgressTime = Date.now()
|
let lastProgressTime = Date.now()
|
||||||
|
|
||||||
const maxConcurrency = getConcurrency()
|
const maxConcurrency = getConcurrency()
|
||||||
const bufferSize = getUploadChunkSize()
|
const bufferSize = getUploadChunkSize()
|
||||||
|
@ -52,6 +52,8 @@ export async function uploadZipToBlobStorage(
|
||||||
throw new Error('Upload progress stalled.')
|
throw new Error('Upload progress stalled.')
|
||||||
}
|
}
|
||||||
}, timeout)
|
}, timeout)
|
||||||
|
|
||||||
|
lastProgressTime = Date.now()
|
||||||
const options: BlockBlobUploadStreamOptions = {
|
const options: BlockBlobUploadStreamOptions = {
|
||||||
blobHTTPHeaders: {blobContentType: 'zip'},
|
blobHTTPHeaders: {blobContentType: 'zip'},
|
||||||
onProgress: uploadCallback
|
onProgress: uploadCallback
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@actions/http-client",
|
"name": "@actions/http-client",
|
||||||
"version": "2.2.0",
|
"version": "2.2.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
|
|
Loading…
Reference in New Issue