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

Can we explicitly run schedulers on demonic threads? #57

Closed
sachuin23 opened this issue Sep 24, 2015 · 3 comments
Closed

Can we explicitly run schedulers on demonic threads? #57

sachuin23 opened this issue Sep 24, 2015 · 3 comments

Comments

@sachuin23
Copy link

If the main thread dies, we see that the scheduled threads are still alive causing system to be in a weired state, is there a way to make scheduler threads demonic?

@dbrattli
Copy link
Collaborator

Yes, that is a good idea. Which scheduler are you using? Note that all operators that uses a scheduler accepts a scheduler as a parameter, but will use a default scheduler if not specified. The EventLoopScheduler accepts a thread_factory where you may decide how you create your threads. Maybe we should do something similar for other thread creating schedulers as well. But new threads should probably be daemonized by default.

@sachuin23
Copy link
Author

I am using NewThreadScheduler currently to schedule a task. This prevents program to exit if there is a problem with the program running on main thread.

@lock
Copy link

lock bot commented Jan 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants