Fix createrepo workers racing
Sometimes packetary hangs forever when spawning mutiple createrepo workers. This patch sets number of workers to 1. Change-Id: Ica52245b20343428e663e9397ffa8b52d6f46ffc Closes-Bug: #1552138
This commit is contained in:
parent
6e94aee106
commit
c193aa6c60
|
@ -17,7 +17,6 @@
|
|||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
import copy
|
||||
import multiprocessing
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
|
@ -230,7 +229,7 @@ class RpmRepositoryDriver(RepositoryDriverBase):
|
|||
with open(groupsfile, "w") as fd:
|
||||
groupstree.write(fd)
|
||||
try:
|
||||
md_config.workers = multiprocessing.cpu_count()
|
||||
md_config.workers = 1
|
||||
md_config.directory = str(basepath)
|
||||
md_config.groupfile = groupsfile
|
||||
md_config.update = update
|
||||
|
|
Loading…
Reference in New Issue