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

Interrupt main thread on Exception in sub thread #1674

Merged
merged 16 commits into from
Jan 10, 2025

Conversation

NeoLegends
Copy link
Member

Now that we have py3.8 we can implement this.

Closes #1667

@NeoLegends NeoLegends self-assigned this Jan 9, 2025
@NeoLegends NeoLegends requested review from albertz and a team as code owners January 9, 2025 15:56
returnn/util/debug.py Outdated Show resolved Hide resolved
@NeoLegends NeoLegends marked this pull request as draft January 10, 2025 10:06
@NeoLegends
Copy link
Member Author

This is a bit suboptimal right now, because the test requires torch as dependency because RETURNN wants a backend. Is there a way to turn that off?

@NeoLegends NeoLegends marked this pull request as ready for review January 10, 2025 10:22
Co-authored-by: Albert Zeyer <[email protected]>
tests/test_threading.py Outdated Show resolved Hide resolved
tests/test_threading.py Outdated Show resolved Hide resolved
tests/test_threading.py Outdated Show resolved Hide resolved
returnn/util/debug.py Outdated Show resolved Hide resolved
returnn/util/debug.py Outdated Show resolved Hide resolved
@albertz albertz merged commit 5a80223 into master Jan 10, 2025
62 checks passed
@albertz albertz deleted the moritz-threading-excepthook branch January 10, 2025 13:34
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.

Unhandled exceptions in threads should halt the program
2 participants