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

Add a new thread pool option to allow the pool to live and accept tasks after shutdown #144

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

TrentHouliston
Copy link
Member

Currently when the system shuts down it will stop any new tasks from being added to the thread pools.

For some tasks like tracing, we want to be able to see tasks and accept tasks even after all the other pools have finished so we can trace events like Shutdown and emits that happen during the shutdown process.

This adds a new flag to custom pools that let them ignore the first shutdown state, and instead wait until the other pools have shut down before they stop running.

@TrentHouliston TrentHouliston merged commit c5a3a88 into main Aug 30, 2024
12 of 13 checks passed
@TrentHouliston TrentHouliston deleted the houliston/long-pools branch August 30, 2024 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant