Closed FlorianHoppe closed 5 years ago
Do those subprocesses persist or do they eventually go away?
In my tests they persists for ever.
Can you add "pool.join()" after this pool.close() and let me know if that resolves the issue for you. https://github.com/dedupeio/dedupe/blob/master/dedupe/core.py#L360
That works for me. Thanks for this quick help!
I would have added a pull request for a branch to add this fix, but I got a permission denied
when trying to push it to github...
closed by #690
Whenever I call the
match
function of theStaticGazetteer
two new subprocesses are spawned and get never cleaned up. This kills my server quite rapidly.This is my sample code
check_dedupe.py
:When running this script, I can see with
ps -ef
that for eachmatch
call two subprocesses get created. E.g.:My running this in a Docker container with a ubuntu:16.04 base image using Python 3.6 (
Python 3.6.5 (default, Mar 29 2018, 03:28:50) [GCC 5.4.0 20160609] on linux)
and these python packages: