Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trondhindenes/3fc8f394e426cefca702 to your computer and use it in GitHub Desktop.
Save trondhindenes/3fc8f394e426cefca702 to your computer and use it in GitHub Desktop.
PowerShell Workflow paralell with throttle limit
workflow paralleltest
{
$a = 1..10
#Divide the 10 iterations into 3 (+1) blocks
foreach -parallel -throttlelimit (($a.count)/3) ($b in $a)
{
Write-Output $b
}
}
paralleltest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment