Max Kozlov
Max Kozlov
after my PR I hope ;-)
My fork have two possible PR's, One - which I'm already opened and another, in separate branch. It have parameter/argumentlist optimizations and several different ways of handling (#149). For compatibility...
if you don’t have enough features, you can try [my fork](https://github.com/MVKozlov/PoshRSJob) but *ThreadJob* looks promising
I think firstly because **ThreadJob** is a native c# module :) next, to give compatibility to existing `Wait-Job`/`Receive-Job` cmdlets PoshRSJob use private interfaces for: - Getting job state. _ThreadJob_ use...
It seems this is not bug, but `powershell-by-design` feature. `$global:variable` defined inside **start-rsjob {}** block (i.e. inside child runspace) do not correlate with `$global:variable` in main runspace. It can be...
any info about your environment ? I can't reproduce this
The error itself not in `RSJob` module Seems there is something in `Invoke-SqlCmd` use direct output to `$host`, so it is not thread safe this code variant show that error...
Yes, Its applied to entire batch , but do you really need something other ? What problem you see with current implementation ? please more detail
so, what exactly problem with `$completed_jobs = $jobs | Wait-RSJob -Timeout xxx` `$incompleted = $jobs | where { -not $_.Completed }` `$incompleted | Remove-RSJob -Force` in this scenario ? it...
@opustecnica 1. No, You are wrong, `Wait-RSJob` doesn't always wait full timeout, It out by timeout only if your last job run longer so, code above mimic original `wait-rsjob` cycle...