René's URL Explorer Experiment


Title: Job results (from Receive-Job) are grouped by output type, differently than "normal" (BackgroundJob) jobs · Issue #40 · PowerShell/ThreadJob · GitHub

Open Graph Title: Job results (from Receive-Job) are grouped by output type, differently than "normal" (BackgroundJob) jobs · Issue #40 · PowerShell/ThreadJob

X Title: Job results (from Receive-Job) are grouped by output type, differently than "normal" (BackgroundJob) jobs · Issue #40 · PowerShell/ThreadJob

Description: Consider the following code which starts a ThreadJob: $job = Start-ThreadJob -ScriptBlock { for( $i = 0 ; $i -lt 100 ; $i++ ) { Write-Output "output $i" Write-Host "host output $i" Write-Information "info output $i" Write-Verbose "verbos...

Open Graph Description: Consider the following code which starts a ThreadJob: $job = Start-ThreadJob -ScriptBlock { for( $i = 0 ; $i -lt 100 ; $i++ ) { Write-Output "output $i" Write-Host "host output $i" Write-Informatio...

X Description: Consider the following code which starts a ThreadJob: $job = Start-ThreadJob -ScriptBlock { for( $i = 0 ; $i -lt 100 ; $i++ ) { Write-Output "output $i" Write-Host "host output $i&qu...

Opengraph URL: https://github.com/PowerShell/ThreadJob/issues/40

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Job results (from Receive-Job) are grouped by output type, differently than \"normal\" (BackgroundJob) jobs","articleBody":"Consider the following code which starts a ThreadJob:\r\n\r\n```ps1\r\n$job = Start-ThreadJob -ScriptBlock {\r\n\r\n    for( $i = 0 ; $i -lt 100 ; $i++ )\r\n    {\r\n        Write-Output \"output $i\"\r\n        Write-Host \"host output $i\"\r\n        Write-Information \"info output $i\"\r\n        Write-Verbose \"verbose output $i\"\r\n        Write-Warning \"warning output $i\"\r\n\r\n        Start-Sleep -Seconds 5\r\n    }\r\n}\r\n```\r\n\r\nIf I receive results of the job, the output is grouped according to the type of output:\r\n\r\n```console\r\nPS C:\\Users\\me> Receive-Job $job\r\noutput 0\r\noutput 1\r\noutput 2\r\nWARNING: warning output 0\r\nWARNING: warning output 1\r\nWARNING: warning output 2\r\nhost output 0\r\nhost output 1\r\nhost output 2\r\nPS C:\\Users\\me>\r\n```\r\n\r\nThis is in contrast to “normal” jobs—if I switch the call out for `Start-Job`, the results come in a more expected order:\r\n\r\n```console\r\nPS C:\\Users\\me> Receive-Job $job\r\noutput 0\r\nhost output 0\r\nWARNING: warning output 0\r\noutput 1\r\nhost output 1\r\nWARNING: warning output 1\r\noutput 2\r\nhost output 2\r\nWARNING: warning output 2\r\nPS C:\\Users\\me>\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n\r\nI expect the output from `Receive-Job` of a ThreadJob to come in the same order as from a BackgroundJob.\r\n\r\nThis is because I expect to be able to use thread jobs as a \"drop-in\" replacement for background jobs (modulo restrictions imposed due to running in the same process, like of course you wouldn't be able to load different versions of .NET assemblies).\r\n\r\n\r\n### Actual behavior\r\n\r\nThe output from a ThreadJob is all grouped by output type (all Warnings grouped together, all host output grouped together, etc.).\r\n\r\n### Environment data\r\n\r\n```PowerShell\r\nName                           Value\r\n----                           -----\r\nPSVersion                      7.4.5\r\nPSEdition                      Core\r\nGitCommitId                    7.4.5\r\nOS                             Microsoft Windows 10.0.26290\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\r\n\r\nPS C:\\Users\\me> gmo *thread*\r\n\r\nModuleType Version    PreRelease Name                                ExportedCommands\r\n---------- -------    ---------- ----                                ----------------\r\nBinary     2.1.0                 Microsoft.PowerShell.ThreadJob      Start-ThreadJob\r\n```\r\n\r\n\r\n### Version\r\n\r\n7.4.5 / 2.1.0\r\n","author":{"url":"https://github.com/jazzdelightsme","@type":"Person","name":"jazzdelightsme"},"datePublished":"2024-09-19T18:39:42Z","url":"https://github.com/PowerShell/ThreadJob/issues/40"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f60534cc-20d0-d273-44b9-e78de1f83ddd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8A6C:93ED1:48669:603F1:6AFCD8BC
html-safe-nonce78b9520dd8d428902264ebf5bd137ff6680d5cf271de11535740f6b0b95b4b82
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTZDOjkzRUQxOjQ4NjY5OjYwM0YxOjZBRkNEOEJDIiwidmlzaXRvcl9pZCI6IjQ3NTE1MzYyNzE0MTM1MzI4NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac09540d591a35653303ce12115da1d6adf7317d9d5d56a0bb754faad7e4f1c72c
hovercard-subject-tagissue:2537106442
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/ThreadJob/40/issue_layout
twitter:imagehttps://opengraph.githubassets.com/277b34435e056e822ce742ad3ca033a45bef46b30753f48b4b48a5735e3d6e23/PowerShell/ThreadJob/issues/40
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/277b34435e056e822ce742ad3ca033a45bef46b30753f48b4b48a5735e3d6e23/PowerShell/ThreadJob/issues/40
og:image:altConsider the following code which starts a ThreadJob: $job = Start-ThreadJob -ScriptBlock { for( $i = 0 ; $i -lt 100 ; $i++ ) { Write-Output "output $i" Write-Host "host output $i" Write-Informatio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejazzdelightsme
hostnamegithub.com
expected-hostnamegithub.com
Noneb5b7bc7e41e0a604bbdb5035c7ed9620c2d28b9c8a18747182e2262a75abfd91
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/ThreadJob git https://github.com/PowerShell/ThreadJob.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id265675369
octolytics-dimension-repository_nwoPowerShell/ThreadJob
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id265675369
octolytics-dimension-repository_network_root_nwoPowerShell/ThreadJob
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseff5022cc3aa767e6115451d9c322dd975506d40e
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/ThreadJob/issues/40#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FThreadJob%2Fissues%2F40
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FThreadJob%2Fissues%2F40
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FThreadJob
Reloadhttps://github.com/PowerShell/ThreadJob/issues/40
Reloadhttps://github.com/PowerShell/ThreadJob/issues/40
Reloadhttps://github.com/PowerShell/ThreadJob/issues/40
PowerShellhttps://github.com/PowerShell
ThreadJobhttps://github.com/PowerShell/ThreadJob
Codehttps://github.com/PowerShell/ThreadJob
Issues15 (15)https://github.com/PowerShell/ThreadJob/issues
Pull requests11 (11)https://github.com/PowerShell/ThreadJob/pulls
Actionshttps://github.com/PowerShell/ThreadJob/actions
Projectshttps://github.com/PowerShell/ThreadJob/projects
Security and qualityhttps://github.com/PowerShell/ThreadJob/security
Insightshttps://github.com/PowerShell/ThreadJob/insights
https://github.com/PowerShell/ThreadJob
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/ThreadJob/issues/40
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/ThreadJob/issues/40
Job results (from Receive-Job) are grouped by output type, differently than "normal" (BackgroundJob) jobshttps://github.com/PowerShell/ThreadJob/issues/40#top
https://github.com/jazzdelightsme
Dan Thompson (jazzdelightsme)https://github.com/jazzdelightsme
on Sep 19, 2024https://github.com/PowerShell/ThreadJob/issues/40#issue-2537106442
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/ThreadJob/issues/40
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/ThreadJob/issues/40
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.