From 7e7c3969a764faffe814e72a0940103c4bb69d67 Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Sat, 11 Apr 2020 21:21:07 +0530 Subject: [PATCH] fix: set translations download limit based on cpu cores --- bench/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils.py b/bench/utils.py index 33a9a6cb..332bda2a 100755 --- a/bench/utils.py +++ b/bench/utils.py @@ -844,7 +844,7 @@ def update_translations_p(args): def download_translations_p(): - pool = multiprocessing.Pool(4) + pool = multiprocessing.Pool(multiprocessing.cpu_count()) langs = get_langs() apps = ('frappe', 'erpnext')