Skip to content

Parallel runs on Windows PowerShell 5.1, and what throttle 1 does - #449

Open
nohwnd wants to merge 1 commit into
mainfrom
parallel-runspaces-and-throttle
Open

Parallel runs on Windows PowerShell 5.1, and what throttle 1 does#449
nohwnd wants to merge 1 commit into
mainfrom
parallel-runspaces-and-throttle

Conversation

@nohwnd

@nohwnd nohwnd commented Aug 22, 2026

Copy link
Copy Markdown
Member

Run.Parallel no longer needs PowerShell 7 (pester/Pester#2987, merged), so this drops the ForEach-Object -Parallel engine from the description and the 5.1 entry from the fallback list.

Run.ParallelThrottleLimit = 1 reads like a way to turn parallel off, and it is not. The files still go through the parallel machinery, one at a time in their own runspace, so you keep the isolation and you keep what comes with it: a breakpoint set in the calling session does not hit inside a worker, breakpoints are per runspace. To step through, set Run.Parallel to $false. Came up in pester/Pester#2971 and pester/Pester#2973.

Also says the throttle does nothing on its own, a run that is not parallel has nothing to throttle.

🤖

Parallel no longer needs PowerShell 7, so drop the ForEach-Object -Parallel
engine from the description and the 5.1 entry from the fallback list. Needs
pester/Pester#2987.

ParallelThrottleLimit reads like a way to turn parallel off when you set it to 1,
and it is not. The files still go through the parallel machinery, one at a time in
their own runspace, so debugging still does not work, breakpoints are per
runspace. Say that, and say the throttle does nothing at all unless Run.Parallel
is on.

🤖
@nohwnd nohwnd added this to the 6.2.0 milestone Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant