ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
34 stars 2 forks source link

Job object children is null when there is child jobs that the parent started. #3433

Closed mikedhanson closed 1 month ago

mikedhanson commented 1 month ago

Version

4.3.0

Severity

High

Environment

msi

Steps to Reproduce

Have a job that gets triggered which looks at the parent jobs children and generates a report

image

Job #14582 spawned all of these nested jobs.

image

Expected behavior

Children should be populated every time there is a nested job

Actual behavior

Sometimes children is null when a parent job has children.

Additional Environment data

No response

Screenshots/Animations

No response

mikedhanson commented 1 month ago

I think this introduced a new bug

Job: 14743
image

as you can see this job has 4 child jobs. None of these child jobs have children.

$Job = Get-psujob -id 14743 -UseDefaultCredentials -ComputerName http://localhost:5000

$Job.Children.id

image

image