Skip to content

Mitigate errors during resource warning on interpreter shutdown #1037

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

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

robsdedude
Copy link
Member

According to #1024 errors can still happend during interpreter shutdown when user code is not closing the driver properly. This PR should hopefully fix this for good (1st attempt made here #942).

The solution is inspired from Python's std lib. See https://github.com/python/cpython/blob/v3.12.3/Lib/multiprocessing/pool.py#L264-L271

Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐢

@robsdedude robsdedude merged commit 638c05f into neo4j:5.0 Apr 12, 2024
@robsdedude robsdedude deleted the fix/erorrs-on-interpreter-shutdown branch April 12, 2024 13:24
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.

2 participants