man_update.py: ProcessPoolExecutor dead-locks after refactoring
Created by: lahwaacz
After refactoring update.py
to a Django management command man_update.py
, the original code using concurrent.futures.ProcessPoolExecutor
leads to a dead-lock. Django's manage.py
probably uses more stuff which cannot be pickled and copied into subprocesses...
Now using concurrent.futures.ThreadPoolExecutor
as a workaround, but with a lower performance.
Edited by Sven-Hendrik Haase