PSThreadJob
PSThreadJob copied to clipboard
A PowerShell module for running concurrent jobs based on threads rather than processes
Windows 10, Powershell 5.1.19041.1320 ```powershell Import-Module ThreadJob -MinimumVersion 2.0.3 if (-not (test-path test-dir)) { mkdir test-dir | out-null } cd test-dir Write-Host "Current directory: $(Get-Location)" $job = Start-Job -ScriptBlock {...
I want to launch a “background” task as a ThreadJob, as part of a larger script. The script will likely finish before the job, and it’s okay if the user...
`Receive-Job` yields no output on `Start-ThreadJob`- or `Start-Job`-jobs, when listening to `Completed` or `Failed` JobState changes with `Register-ObjectEvent`. $PSVersionTable dump: ```powershell Name Value ---- ----- PSVersion 5.1.17763.2183 PSEdition Desktop PSCompatibleVersions...
This should be a simple fiix to include the projectURI link in the psd1 for the module when it next gets published
The problem is pretty straightforward: I have a script that uses `$PSScriptRoot`, but when I ran the script in a ThreadJob, it malfunctioned, because `$PSScriptRoot` evaluated to an empty string....
Hi @PaulHigin I was wondering how this module could help me reduce time of fetching data over the network using `Invoke-Command -ComputerName` Is that something that this module could do?...
Help is not available in PowerShell. The HelpInfo URI appears to be out of date. It shows BlobNotFound. Online help content is missing help content the StreamingHost parameter.
Link to powershell gallery leads to old 1.1.2 release and not 2.0.3 Thanks
I noticed that Start-Job returns an object that has a property that allows you to get the runspace: ``` $myJob = Start-Job -ScriptBlock { gci } $myJob.ChildJobs[0].Runspace Id Name ComputerName...