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

allow inspection of job manager thread state #640

Open
soxofaan opened this issue Oct 4, 2024 · 1 comment
Open

allow inspection of job manager thread state #640

soxofaan opened this issue Oct 4, 2024 · 1 comment

Comments

@soxofaan
Copy link
Member

soxofaan commented Oct 4, 2024

Users can only start a job manager thread, and stop it, but they also might want to inspect the state: is it still running? and do something with that.

e.g. @mbuchhorn was playing with something like this:

while not manager._stop_thread:
    if not manager._stop_thread:
        visualize_something()
    time.sleep(15)

it should be possible to do that without using private _stop_thread

@soxofaan
Copy link
Member Author

soxofaan commented Oct 4, 2024

quick solution could be to just return the thread object itself from start_job_thread, then user can do whatever they want

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

No branches or pull requests

1 participant