fix(ui): never run database coroutines concurrently on the request session — await them in order (#265)
Ten asyncio.gather sites in UI handlers (repo home, blob, commits, proposals ×3, releases, symbol detail, counts helper) and the OpenGraph card loader interleaved statements on one AsyncSession connection. musehub.db.in_order awaits them sequentially (a session per branch would multiply checkouts from the small web pool). Guard test: no UI module gathers; T601 now pins in_order.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
sha256:141d2a1e63256ef4fa78fe8e13e81febdb37c203a5a4c19665b80c025ca19054
sha
+21
~11
−6
symbols
sha256:98f9ccc31ec55e6d3c4a8c1e32e8050459b76ff02da62e757434530973fdf951
snapshot
+21
symbols added
~11
symbols modified
−6
symbols removed
0
dead code introduced
Semantic Changes
38 symbols
+
test_in_order_awaits_sequentially_and_keeps_order
function
function test_in_order_awaits_sequentially_and_keeps_order L25–36
+
test_no_ui_handler_gathers_database_work
function
function test_no_ui_handler_gathers_database_work L21–22
~
musehub/api/routes/musehub/ui_proposals.py
.py
1 symbol added, 1 symbol removed, 2 symbols modified
Older
fix(opengraph): close the per-process Chromium after an idle per…
sha256:0fa8ccb2724554e6bb2f98afeabd24d84009764c28824f982a84ef1fd5f1430e
All commits
Newer
fix(mcp): interactive release no longer crashes for URL-capable …
sha256:3d28011408500b3b8512a46e00261fcbb9f2c0ef7a6910e651802fef1086f0e9
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:141d2a1e63256ef4fa78fe8e13e81febdb37c203a5a4c19665b80c025ca19054 --body "your comment"
No comments yet. Be the first to start the discussion.