Skip to content

Commit

Permalink
remove extra transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Jan 23, 2025
1 parent 66ab281 commit bce5afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/server/services/task_run_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def record_task_run_event(event: ReceivedEvent) -> None:
}

db = provide_database_interface()
async with db.session_context(begin_transaction=True) as session:
async with db.session_context(begin_transaction=False) as session:
await _insert_task_run(session, task_run, task_run_attributes)
await _insert_task_run_state(session, task_run)
await _update_task_run_with_state(
Expand Down

0 comments on commit bce5afa

Please sign in to comment.