Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Similar to the new Tasks, Schedule runspaces should be cleaned-up after they're complete #932

Closed
Badgerati opened this issue Feb 9, 2022 · 1 comment · Fixed by #933
Closed
Assignees
Labels
Milestone

Comments

@Badgerati
Copy link
Owner

A quick last minute addition to v2.6.0. When I added Task support I made it so the runspaces used would be cleaned-up once the Task has completed - to free up resources.

Schedule runspaces aren't having this occur, and similar to Tasks, once they're complete they should be disposed and removed.

@Badgerati Badgerati added this to the 2.6.0 milestone Feb 9, 2022
@Badgerati Badgerati self-assigned this Feb 9, 2022
@Badgerati
Copy link
Owner Author

I've added a [GC]::Collect() to occur when the server closes, or is restarted - just to help free up resources.

I have other ideas about using GC in other parts of Pode which I need to further explore, but I'll save it for one of the next releases (2.6.1 or 2.7.0) - once I can test it and write it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant