Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/artifact/src/internal/upload-http-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class UploadHttpClient {
private statusReporter: UploadStatusReporter

constructor() {
this.uploadHttpManager = new HttpManager(getUploadFileConcurrency())
this.uploadHttpManager = new HttpManager(getUploadFileConcurrency() + 1)
this.statusReporter = new UploadStatusReporter()
}

Expand Down Expand Up @@ -112,7 +112,8 @@ export class UploadHttpClient {
})
}

const parallelUploads = [...new Array(FILE_CONCURRENCY).keys()]
// http client indices start at 1 to avoid re-using the main client
const parallelUploads = new Array(FILE_CONCURRENCY).fill(0).map((x, i) => i + 1)
const failedItemsToReport: string[] = []
let currentFile = 0
let completedFiles = 0
Expand Down