Closed robsdedude closed 3 months ago
According to https://github.com/neo4j/neo4j-python-driver/issues/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 https://github.com/neo4j/neo4j-python-driver/pull/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
According to https://github.com/neo4j/neo4j-python-driver/issues/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 https://github.com/neo4j/neo4j-python-driver/pull/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