Title: Duplicated Verbose Messages on StreamingHost of Receive-Job with Wait and Verbose flags present · Issue #70 · PowerShell/ThreadJob · GitHub
Open Graph Title: Duplicated Verbose Messages on StreamingHost of Receive-Job with Wait and Verbose flags present · Issue #70 · PowerShell/ThreadJob
X Title: Duplicated Verbose Messages on StreamingHost of Receive-Job with Wait and Verbose flags present · Issue #70 · PowerShell/ThreadJob
Description: Prerequisites 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 reprodu...
Open Graph Description: Prerequisites 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 PowerSh...
X Description: Prerequisites 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 PowerSh...
Opengraph URL: https://github.com/PowerShell/ThreadJob/issues/70
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicated Verbose Messages on StreamingHost of Receive-Job with Wait and Verbose flags present","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nThe following code produces duplicate verbose messages. During a large job, this can amount to gigabytes of logs:\n\n```\n$job = Start-ThreadJob -StreamingHost $Host -ScriptBlock {\n Write-Verbose \"yo\" -Verbose\n Start-Sleep -Seconds 2\n}\nReceive-Job -Job $job -Wait -Verbose\n```\nAlso can reproduce with Write-Debug:\n```\n$job = Start-ThreadJob -StreamingHost $Host -ScriptBlock {\n Write-Debug \"yo\" -Debug\n Start-Sleep -Seconds 2\n}\nReceive-Job -Job $job -Wait -Debug\n```\n\nOther ways of reproducing:\n```\nStart-ThreadJob -StreamingHost $Host -ScriptBlock { Write-Verbose \"yo\" -Verbose; Start-Sleep -Seconds 1 } | Receive-Job -Wait -Verbose\n```\n\nThis seems to require the following elements to reproduce:\n- A threadjob with streaminghost, or at least a streaminghost.\n- Forced `Write-Verbose` or other stream forced command inside the threadjob (e.g. `Write-Verbose \"yo\" -Verbose`)\n- `Receive job -Wait -Verbose` or similar stream (debug works too)\n- Don't wait for the job (if you wait prior to receive job commandlet, it will not reproduce). Receive job must do the waiting\n\n\n### Expected behavior\n\n```console\nVERBOSE: yo\n```\n\n### Actual behavior\n\n```console\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\nVERBOSE: yo\n```\n\n### Error details\n\n```console\nN/A\n```\n\n### Environment data\n\n```powershell\nPowershell version:\n\nPS C:\\git> $psversiontable\n\nName Value\n---- -----\nPSVersion 7.5.4\nPSEdition Core\nGitCommitId 7.5.4\nOS Microsoft Windows 10.0.26200\nPlatform Win32NT\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n\nWe also reproduced on 2 machines, 7.5.3 and 7.5.4, and Azure cloud shell\n```\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/thoffmannaspenware","@type":"Person","name":"thoffmannaspenware"},"datePublished":"2026-01-06T23:37:21Z","url":"https://github.com/PowerShell/ThreadJob/issues/70"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:abbd0ae8-46d2-9783-8f22-a07246b3188b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A568:2CFBF7:11DE9C7:1939D82:6AFCD8B8 |
| html-safe-nonce | ad78569e221d0337e95edc97285b1a9c51a6acc88185e8e9d13ab684b346ecc8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTY4OjJDRkJGNzoxMURFOUM3OjE5MzlEODI6NkFGQ0Q4QjgiLCJ2aXNpdG9yX2lkIjoiNjg1NzI3NzYwMDQxNTE0NDEyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c3001f6b6faf341fb7815610d1e2ead48f7571caf5bd9a906d782a937a7d2a19 |
| hovercard-subject-tag | issue:6208111886 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/ThreadJob/70/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d79b4deb12253f9195842784169f0b03f655b633bec4ade412733b3010fc3b57/PowerShell/ThreadJob/issues/70 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d79b4deb12253f9195842784169f0b03f655b633bec4ade412733b3010fc3b57/PowerShell/ThreadJob/issues/70 |
| og:image:alt | Prerequisites 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 PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thoffmannaspenware |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5b7bc7e41e0a604bbdb5035c7ed9620c2d28b9c8a18747182e2262a75abfd91 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/ThreadJob git https://github.com/PowerShell/ThreadJob.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 265675369 |
| octolytics-dimension-repository_nwo | PowerShell/ThreadJob |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 265675369 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/ThreadJob |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ff5022cc3aa767e6115451d9c322dd975506d40e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width