Skip to content

Commit

Permalink
Merge pull request #4217 from nickmango/bug/threading
Browse files Browse the repository at this point in the history
Bug/Sign Process
  • Loading branch information
nickmango authored Jan 16, 2024
2 parents 34486cc + 4c8e897 commit ef96530
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cla-backend/cla/models/github_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,12 @@ def update_change_request(self, installation_id, github_repository_id, change_re
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))
for future in concurrent.futures.as_completed(futures):
cla.log.debug(f'{fn} - ThreadClosed for handle_commit_from_user')

#Wait for all threads to be finished before mobing on
executor.shutdown(wait=True)

for future in concurrent.futures.as_completed(futures):
cla.log.debug(f'{fn} - ThreadClosed for handle_commit_from_user')

# At this point, the signed and missing lists are now filled and updated with the commit user info

Expand Down

0 comments on commit ef96530

Please sign in to comment.