Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion commitly-backend/app/services/roadmap_rating_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ def action() -> RoadmapRating:
)
self._session.add(record)

# Update aggregated stats on GeneratedRoadmap
# Update aggregated stats on GeneratedRoadmap atomically
roadmap = (
self._session.query(GeneratedRoadmap)
.filter_by(repo_full_name=repo_full_name)
.with_for_update()
.one_or_none()
)

Expand Down