Skip to content

Commit

Permalink
Merge pull request #4167 from communitybridge/fix/multi_commit_issue
Browse files Browse the repository at this point in the history
increased limit of threadpool workers
  • Loading branch information
nickmango authored Nov 14, 2023
2 parents 91d147b + 3d2d5bd commit 4c18ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cla-backend/cla/models/github_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 4c18ee0

Please sign in to comment.