Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix: Remove no longer necessary isolation level (#416)
Browse files Browse the repository at this point in the history
Backported-From: main
Backported-To: 20.09
  • Loading branch information
achimnol committed Apr 2, 2021
1 parent 09d8706 commit 6273da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/416.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a regression of spawning multi-node cluster sessions due to DB API changes related to setting transaction isolation levels
2 changes: 1 addition & 1 deletion src/ai/backend/manager/scheduler/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ async def _schedule_multi_node_session(
log_args = _log_args.get()
agent_query_extra_conds = None
kernel_agent_bindings: List[KernelAgentBinding] = []
async with agent_db_conn.begin(isolation_level="REPEATABLE READ"):
async with agent_db_conn.begin():
# This outer transaction is rolled back when any exception occurs inside,
# including scheduling failures of a kernel.
# It ensures that occupied_slots are recovered when there are partial
Expand Down

0 comments on commit 6273da7

Please sign in to comment.