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 7fd2298 commit 8f19341Copy full SHA for 8f19341
solutions/macie/macie-org/code/src/app.py
@@ -111,7 +111,7 @@ def check_available_regions(service_regions: list) -> list:
111
try:
112
thread_cnt = MAX_THREADS
113
if MAX_THREADS > len(service_regions):
114
- thread_cnt = len(service_regions) - 2
+ thread_cnt = max(len(service_regions) - 2, 1)
115
116
processes = []
117
with ThreadPoolExecutor(max_workers=thread_cnt) as executor:
0 commit comments