You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to launch a “background” task as a ThreadJob, as part of a larger script. The script will likely finish before the job, and it’s okay if the user exits PowerShell before the job finishes. I don’t mind if the user can see it (via Get-Job) while it’s running, but it would be nice to automagically clean it up when it finishes. But I can’t find a way for it to remove itself… it seems the job is invisible to itself. It would be nice if this could be supported somehow (perhaps an -AutoRemoveJob option?).
Thanks!
The text was updated successfully, but these errors were encountered:
I want to launch a “background” task as a ThreadJob, as part of a larger script. The script will likely finish before the job, and it’s okay if the user exits PowerShell before the job finishes. I don’t mind if the user can see it (via Get-Job) while it’s running, but it would be nice to automagically clean it up when it finishes. But I can’t find a way for it to remove itself… it seems the job is invisible to itself. It would be nice if this could be supported somehow (perhaps an
-AutoRemoveJob
option?).Thanks!
The text was updated successfully, but these errors were encountered: