mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 07:28:25 +00:00
fix: compatibility fixes, better cpu utilization
This commit is contained in:
parent
bb677d17df
commit
3b91d98d85
@ -69,7 +69,7 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False,
|
|||||||
try:
|
try:
|
||||||
os.makedirs(os.path.join(path, dirname))
|
os.makedirs(os.path.join(path, dirname))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno == os.errno.EEXIST:
|
if e.errno == errno.EEXIST:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
setup_logging()
|
setup_logging()
|
||||||
@ -716,7 +716,7 @@ def update_translations_p(args):
|
|||||||
print('Download failed for', args[0], args[1])
|
print('Download failed for', args[0], args[1])
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user