question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerShell ships ThreadJob not Microsoft.PowerShell.ThreadJob

See original GitHub issue

Prerequisites

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:open
  • Created 4 months ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ThomasNietocommented, Jun 5, 2023

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.

2reactions
PaulHigincommented, Jun 14, 2023

Please see PR: https://github.com/PowerShell/ThreadJob/pull/29 for removing pdb file from ThreadJob release build.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found