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

How to impolitely/ forcedly stop all threads in the thread pool? #1

Open
KaliszAd opened this issue Sep 24, 2023 · 0 comments
Open

Comments

@KaliszAd
Copy link

KaliszAd commented Sep 24, 2023

tt/stop! waits for the threads to finish. Is there a recommended way to simply kill the thread or threads, e.g. if it just takes too long or whatever?

I have a recurring calculation that takes ~3 minutes but can be started any time again - the result can be calculated later if for some reason it does not finish. Do you have a recommendation for killing the threads e.g. when deploying a new version of the application as fast as possible?

How would you approach it if I wanted to give it e.g. a 2 second timeout and than kill the threads no matter what?

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

No branches or pull requests

1 participant