Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .azure-pipelines/common-templates/install-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ steps:
script: |
Write-Output $PSVersionTable

- task: NodeTool@0
- task: UseNode@1
displayName: Install NodeJs
retryCountOnTaskFailure: 2
inputs:
versionSpec: 18.x
version: 22.x

- task: PowerShell@2
displayName: Configure private npm feed
Expand Down
2 changes: 1 addition & 1 deletion tools/GenerateModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ $AutoRestTempFolder | ForEach-Object {

$Stopwatch = [system.diagnostics.stopwatch]::StartNew()
$CpuCount = (Get-CimInstance Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum
$Throttle = [int][math]::Max(1, [math]::Min(4, $CpuCount / 2)) # Use half the CPU count but max 4, min 1
$Throttle = [int][math]::Max(1, [math]::Min(2, $CpuCount / 2)) # Use half the CPU count but max 2, min 1
$Results = $ModuleToGenerate | ForEach-Object -Parallel {
$Module = $_
Write-Host -ForegroundColor Green "-------------'Generating $Module'-------------"
Expand Down
Loading