Fixes process leak when using update_index with workers. #552

Merged
merged 1 commit into from Dec 13, 2012

Projects

None yet

2 participants

@hadesgames
Contributor

Currently I am calling update_index, with workers, using call_command multiple times from the same process. The workers used by the command are never destroyed. This patch fixes the issue.

I am using pool.terminate() instead of pool.close() because pool.close() suffers from a bug on Python 2.7.2.

@jezdez jezdez merged commit 0e95d86 into django-haystack:master Dec 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment