We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55dc851 commit 357b8b7Copy full SHA for 357b8b7
tools/sync/sync.py
@@ -48,6 +48,7 @@
48
from commands import Commands, CommandsBase
49
from readconfig import read_config
50
from shutil import which
51
+import multiprocessing
52
53
54
major_version = sys.version_info[0]
@@ -75,7 +76,7 @@ def worker(base):
75
76
dirs_to_process = []
77
78
parser = argparse.ArgumentParser(description='Manage parallel workers.')
- parser.add_argument('-w', '--workers', default=4,
79
+ parser.add_argument('-w', '--workers', default=multiprocessing.cpu_count(),
80
help='Number of worker processes')
81
82
# There can be only one way how to supply list of projects to process.
0 commit comments