mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 14:20:45 +00:00
set minimal workers to 2
This commit is contained in:
parent
28302701c5
commit
14db85c252
@ -38,7 +38,7 @@ def main():
|
|||||||
files = config["rules"]["files"]
|
files = config["rules"]["files"]
|
||||||
standards = base.get_standards(config["rules"]["standards"])
|
standards = base.get_standards(config["rules"]["standards"])
|
||||||
|
|
||||||
workers = multiprocessing.cpu_count() - 2
|
workers = max(multiprocessing.cpu_count() - 2, 2)
|
||||||
p = multiprocessing.Pool(workers)
|
p = multiprocessing.Pool(workers)
|
||||||
for filename in files:
|
for filename in files:
|
||||||
lines = None
|
lines = None
|
||||||
|
Loading…
Reference in New Issue
Block a user