Skip to content

Feature request: would be nice for a ThreadJob to be able to clean itself up #63

@jazzdelightsme

Description

@jazzdelightsme

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions