Closed smithsz closed 2 years ago
Fixes deadlock when calling get_latest_commits from multiple threads.
get_latest_commits
Make Locker.get_latest_commit thread safe.
Locker.get_latest_commit
Aquire the lock when iterating repository commits in Locker.get_latest_commit.
Tested locally.
Closes https://github.com/ComplianceAsCode/auditree-framework/issues/136.
Fixes deadlock when calling
get_latest_commits
from multiple threads.What
Make
Locker.get_latest_commit
thread safe.How
Aquire the lock when iterating repository commits in
Locker.get_latest_commit
.Test
Tested locally.
Context
Closes https://github.com/ComplianceAsCode/auditree-framework/issues/136.