mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 23:14:23 +00:00
actually use provided number of workers
This commit is contained in:
@@ -24,7 +24,6 @@ from dotdrop.exceptions import YamlException, UndefinedException
|
|||||||
|
|
||||||
LOG = Logger()
|
LOG = Logger()
|
||||||
TRANS_SUFFIX = 'trans'
|
TRANS_SUFFIX = 'trans'
|
||||||
INST_WORKERS = 10
|
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
# entry point
|
# entry point
|
||||||
@@ -191,7 +190,7 @@ def cmd_install(o):
|
|||||||
# install each dotfile
|
# install each dotfile
|
||||||
if o.install_parallel > 1:
|
if o.install_parallel > 1:
|
||||||
# in parallel
|
# in parallel
|
||||||
ex = futures.ThreadPoolExecutor(max_workers=INST_WORKERS)
|
ex = futures.ThreadPoolExecutor(max_workers=o.install_parallel)
|
||||||
|
|
||||||
wait_for = [
|
wait_for = [
|
||||||
ex.submit(_dotfile_install, o, dotfile, tmpdir=tmpdir)
|
ex.submit(_dotfile_install, o, dotfile, tmpdir=tmpdir)
|
||||||
|
|||||||
Reference in New Issue
Block a user