change threading mode.
This commit is contained in:
parent
c1fc6968ea
commit
df72daacc6
@ -60,7 +60,7 @@ $OfficeList | ForEach-Object -parallel {
|
|||||||
# $ProjectFolders now contains all folders down to the 3rd level of project number - for Example, 1234-567-001. We can now generate a project number for the output file.
|
# $ProjectFolders now contains all folders down to the 3rd level of project number - for Example, 1234-567-001. We can now generate a project number for the output file.
|
||||||
# We need to get a file count for each "last" folder - IE, 001 in the example 1234-567-001.
|
# We need to get a file count for each "last" folder - IE, 001 in the example 1234-567-001.
|
||||||
|
|
||||||
$ProjectFolders | ForEach-Object -ThrottleLimit 5 -Parallel {
|
$ProjectFolders | ForEach-Object -ThrottleLimit 8 -Parallel {
|
||||||
$PathToDB_Copy = $USING:PathToDB_Copy_Main
|
$PathToDB_Copy = $USING:PathToDB_Copy_Main
|
||||||
|
|
||||||
$JobID = Get-Random
|
$JobID = Get-Random
|
||||||
@ -167,7 +167,7 @@ $OfficeList | ForEach-Object -parallel {
|
|||||||
Write-Progress @CurentLoopProgress -Completed
|
Write-Progress @CurentLoopProgress -Completed
|
||||||
}
|
}
|
||||||
Write-Progress @ServerProgress -Completed
|
Write-Progress @ServerProgress -Completed
|
||||||
} -ThrottleLimit 5
|
} -ThrottleLimit 3
|
||||||
|
|
||||||
$ServerProgress = @{
|
$ServerProgress = @{
|
||||||
ID = 1
|
ID = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user