Commit f8fa47a8 authored by Guang's avatar Guang

bug fixed for cpu cores

parent c6c5c5af
......@@ -124,6 +124,8 @@ class PdfAnalysis(AnalysisModule):
init_worker_bestfit, conf['cores'])
def _parallel_job(self, worker, items, initargs, initializer, ncores):
# Force ncore to int type
ncores = int(ncores)
if ncores == 1: # Do not create a new process
for idx, item in enumerate(items):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment