This commit is contained in:
Rob Herley authored and GitHub committed 2023-11-20 16:46:08 +00:00
1 parent a7a0bf3883
commit 420a520de3
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ export function getGitHubWorkspaceDir(): string {
// Mimics behavior of azcopy: https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-optimize
// If your machine has fewer than 5 CPUs, then the value of this variable is set to 32.
// Otherwise, the default value is equal to 16 multiplied by the number of CPUs. The maximum value of this variable is 300.
export function getConcurrency() {
export function getConcurrency(): number {
const numCPUs = os.cpus().length
if (numCPUs <= 4) {
+4 -1
View File
@@ -37,7 +37,10 @@ export async function uploadArtifact(
}
}
const zipUploadStream = await createZipUploadStream(zipSpecification, options?.compressionLevel)
const zipUploadStream = await createZipUploadStream(
zipSpecification,
options?.compressionLevel
)
// get the IDs needed for the artifact creation
const backendIds = getBackendIdsFromToken()