New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Start-RSJob error when Collection in argument list is modified before all jobs have started. #53
Comments
Thanks for providing the code to duplicate this issue. I'll take a look at it and see what I can find. |
Just out of curiosity and I know this is many many months late, but I am curious if anything has changed with the recent updates that I have pushed out. |
I do have this issue too with version 1.5.7.6. |
Weird, did you use the same code as OP or did you use something different? If different, can you post it here? |
@Fxbouffant @kwslavens Can you try again with the latest build and let me know if you still see issues? |
@codykonior Just to make sure, the same error as this:
|
lines from 241:
-match is a bug. it also matches 10 20 and so on may be this bug can affect on above error btw, may be stuff like |
I ran into a issue in Start-RSJobs module.
Collection was modified; enumeration operation may not execute.
At E:\Scripts\MultiThread-RSJobs\PoshRSJob\Public\Start-RSJob.ps1:381 char:25
+ ,$ArgumentList | ForEach {
**+ ~~~~~~~~~~~~~~~~~~~~~~~~~~**
+ CategoryInfo : OperationStopped: (:) [], InvalidOperationException
+ FullyQualifiedErrorId : System.InvalidOperationException
When the number of files in $targetfiles is fairly small 350ish the issue doesn't happen. It seems to occur when a large number of jobs are started and some of the first jobs are running and modifying the $SyncArrayLogOutput before all the other jobs have started. Here is the code I'm working on below.
The text was updated successfully, but these errors were encountered: