From fd909bb722517806e7073858c5a71129a1ceabc8 Mon Sep 17 00:00:00 2001 From: Umesh Lumbhani Date: Tue, 14 Nov 2023 23:31:53 +0530 Subject: [PATCH] upgrade dynamodb read limit 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 fc2cd13ed..bb663e812 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=20) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=30) 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=20) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=30) 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]