Skip to content

Commit c1681ae

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Restricted number of CPUs used by autorest to 2 inorder to reduce number of threads used to process files
1 parent c8dee6c commit c1681ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/GenerateServiceModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $ApiVersion | ForEach-Object {
6868
else {
6969
$FullModuleVersion = $ModuleMetadata.versions[$CurrentApiVersion].version
7070
}
71-
npx autorest --max-memory-size=$MaxMemorySize --module-version:$FullModuleVersion --module-name:$ModuleFullName --service-name:$Module --input-file:$OpenApiFile $AutoRestModuleConfig
71+
npx autorest --max-memory-size=$MaxMemorySize --module-version:$FullModuleVersion --module-name:$ModuleFullName --service-name:$Module --input-file:$OpenApiFile $AutoRestModuleConfig --max-cpu=2
7272
if ($LastExitCode -ne 0) {
7373
Write-Host -ForegroundColor Red "AutoREST failed to generate '$ModuleFullName' module."
7474
exit $LastExitCode

0 commit comments

Comments
 (0)