PowerShell ships ThreadJob not Microsoft.PowerShell.ThreadJob
See original GitHub issuePrerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Why does PowerShell ship ThreadJob and not Microsoft.PowerShell.ThreadJob? The former hasn’t been updated since 2019 while the latter has been updated in 2021.
cc: @PaulHigin
Expected behavior
Get-Module ThreadJob -ListAvailable
Directory: C:\program files\powershell\7-preview\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 2.1.0 Microsoft.PowerShell.ThreadJob Desk Start-ThreadJob
Actual behavior
Get-Module ThreadJob -ListAvailable
Directory: C:\program files\powershell\7-preview\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Binary 2.0.3 ThreadJob Desk Start-ThreadJob
Error details
No response
Environment data
7.4-preview3
Visuals
No response
Issue Analytics
- State:
- Created 4 months ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
ThreadJob module stopped working for seemingly no reason
I'm on Powershell 5.1 which IIRC supports ThreadJob OOB. I have a script which uses the module which used to work without issues....
Read more >Start-ThreadJob - PowerShell
Start-ThreadJob creates background jobs similar to the Start-Job cmdlet. The main difference is that the jobs which are created run in separate threads ......
Read more >What's One Thing that PowerShell dosen't do that you wish ...
PowerShell 7 has the Start-ThreadJob cmdlet for exactly this scenario. For anything prior, use PoshRSJob. Legacy PSJobs are hot garbage.
Read more >ThreadJob Module - PowerShell
This module extends the existing PowerShell BackgroundJob to include a new thread based ThreadJob job. This is a lighter weight solution for running...
Read more >about Thread Jobs - PowerShell
Provides information about PowerShell thread-based jobs. A thread job is a type of background job that runs a command or expression in a ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is the correct place for my issue as the configuration to ship ThreadJob in PowerShell is in this repository. You’ll want to move your ThreadJob specific questions to that repository.
Please see PR: https://github.com/PowerShell/ThreadJob/pull/29 for removing pdb file from ThreadJob release build.