From 3d2d5bd532c3e66fc20621b3ee21d5919619c07e Mon Sep 17 00:00:00 2001 From: Umesh Lumbhani Date: Tue, 14 Nov 2023 22:45:01 +0530 Subject: [PATCH] increased limit of threadpool workers Signed-off-by: Umesh Lumbhani --- cla-backend/cla/models/github_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cla-backend/cla/models/github_models.py b/cla-backend/cla/models/github_models.py index 96a0ebafe..fc2cd13ed 100644 --- a/cla-backend/cla/models/github_models.py +++ b/cla-backend/cla/models/github_models.py @@ -737,7 +737,7 @@ def update_change_request(self, installation_id, github_repository_id, change_re cla.log.debug(f'{fn} - PR: {pull_request.number}, scanning users - ' 'determining who has signed a CLA an who has not.') - with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor: for user_commit_summary in commit_authors: cla.log.debug(f'{fn} - PR: {pull_request.number} for user: {user_commit_summary}') futures.append(executor.submit(handle_commit_from_user, project,user_commit_summary,signed,missing)) @@ -1376,7 +1376,7 @@ def get_pull_request_commit_authors(pull_request) -> List[UserCommitSummary]: commit_authors = [] - with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor: future_to_commit = {executor.submit(get_author_summary, commit, pull_request.number): commit for commit in pull_request.get_commits()} for future in concurrent.futures.as_completed(future_to_commit): future_to_commit[future]