We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9ba0f9 + 4d981e3 commit eacd74aCopy full SHA for eacd74a
commitly-backend/app/services/roadmap_rating_store.py
@@ -88,10 +88,11 @@ def action() -> RoadmapRating:
88
)
89
self._session.add(record)
90
91
- # Update aggregated stats on GeneratedRoadmap
+ # Update aggregated stats on GeneratedRoadmap atomically
92
roadmap = (
93
self._session.query(GeneratedRoadmap)
94
.filter_by(repo_full_name=repo_full_name)
95
+ .with_for_update()
96
.one_or_none()
97
98
0 commit comments