Last active
January 7, 2019 10:25
-
-
Save trondhindenes/3fc8f394e426cefca702 to your computer and use it in GitHub Desktop.
PowerShell Workflow paralell with throttle limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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