Skip to content

Commit

Permalink
put repo/author creation inside lock but not transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshFerge committed Sep 17, 2024
1 parent 27f30a1 commit 0de6835
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sentry/models/releases/set_commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def set_commits(release, commit_list):
# the same release rapidly for different projects.
raise ReleaseCommitError

create_repositories(commit_list, release)
create_commit_authors(commit_list, release)

with TimedRetryPolicy(10)(lock.acquire):
create_repositories(commit_list, release)
create_commit_authors(commit_list, release)

with (
atomic_transaction(using=router.db_for_write(type(release))),
in_test_hide_transaction_boundary(),
Expand Down

0 comments on commit 0de6835

Please sign in to comment.