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

Avoid deadlock caused by functools.cached_property #190

Merged
merged 1 commit into from Jan 24, 2024
Merged

Conversation

SimonHeybrock
Copy link
Member

Avoids a deadlock encountered when using ScippNexus in a threaded context, loading different files in different threads. This affected only Python<3.12, as functools.cached_property contained an instance-level lock.

The exact deadlock mechanism is not fully clear at this point.

Fixes #188 (as far as I can tell so far).

Avoids a deadlock encountered when using ScippNexus in a threaded
context, loading different files in different threads. This affected
only Python<3.12, as functools.cached_property contained an
instance-level lock.

The exact deadlock mechanism is not fully clear at this point.
@SimonHeybrock SimonHeybrock added the bug Something isn't working label Jan 23, 2024
@SimonHeybrock SimonHeybrock marked this pull request as ready for review January 23, 2024 13:03
@SimonHeybrock SimonHeybrock merged commit a370773 into main Jan 24, 2024
3 checks passed
@SimonHeybrock SimonHeybrock deleted the fix-deadlock branch January 24, 2024 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with Dask scheduler?
2 participants