From c576874628c83f7d4eb28f194e3d8cac38346636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Fri, 6 Jan 2017 10:38:41 -0600 Subject: [PATCH] rrs/tools/rrs_upstream_history.py: Disable threads due to new tinfoil API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new tinfoil API don't support pythreads so set to 1 while tinfoil have support. Signed-off-by: Aníbal Limón --- rrs/tools/rrs_upstream_history.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rrs/tools/rrs_upstream_history.py b/rrs/tools/rrs_upstream_history.py index 09a246a..1cd2a9b 100755 --- a/rrs/tools/rrs_upstream_history.py +++ b/rrs/tools/rrs_upstream_history.py @@ -173,7 +173,10 @@ if __name__=="__main__": from oe.utils import ThreadedPool import multiprocessing - nproc = min(multiprocessing.cpu_count(), len(recipes)) + #nproc = min(multiprocessing.cpu_count(), len(recipes)) + # XXX: The new tinfoil API don't support pythreads so + # set to 1 while tinfoil have support. + nproc = 1 pool = ThreadedPool(nproc, len(recipes)) result = []