Skip to content

Commit d3ba883

Browse files
committed
reduce threads from 50 to 15
1 parent e23cbc5 commit d3ba883

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pyatsimagebuilder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
from .builder import ImageBuilder
33

44
# metadata
5-
__version__ = '24.7.1'
5+
__version__ = '24.7.2'
66
__author__ = 'Cisco Systems Inc.'

src/pyatsimagebuilder/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def parse_manifests(manifests, search_path, relative_path=None, repo_data=None):
427427
repo_data = {}
428428
jobs = []
429429

430-
with ThreadPoolExecutor(max_workers=50) as executor:
430+
with ThreadPoolExecutor(max_workers=15) as executor:
431431
for manifest in manifests:
432432
executor.submit(parse_manifest, manifest, jobs, search_path, relative_path, repo_data)
433433

@@ -622,7 +622,7 @@ def discover_yamls(manifests, search_path, relative_path=None):
622622
relative_path (str): String with the directory search results will be relative to
623623
"""
624624
logger.info('Discovering YAML files from manifests')
625-
with ThreadPoolExecutor(max_workers=50) as executor:
625+
with ThreadPoolExecutor(max_workers=15) as executor:
626626
for manifest in manifests:
627627
executor.submit(discover_yamls_from_manifest,
628628
manifest,

0 commit comments

Comments
 (0)