mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
fix: set translations download limit based on cpu cores
This commit is contained in:
parent
e39ae1e0b5
commit
7e7c3969a7
@ -844,7 +844,7 @@ def update_translations_p(args):
|
|||||||
|
|
||||||
|
|
||||||
def download_translations_p():
|
def download_translations_p():
|
||||||
pool = multiprocessing.Pool(4)
|
pool = multiprocessing.Pool(multiprocessing.cpu_count())
|
||||||
|
|
||||||
langs = get_langs()
|
langs = get_langs()
|
||||||
apps = ('frappe', 'erpnext')
|
apps = ('frappe', 'erpnext')
|
||||||
|
Loading…
Reference in New Issue
Block a user