Fix missing database commit in provider update handler (#24357)
This commit is contained in:
parent
77223e4df4
commit
ad2c541163
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ def _execute_provider_updates(updates_to_perform: list[_ProviderUpdateOperation]
|
||||||
|
|
||||||
# Use SQLAlchemy's context manager for transaction management
|
# Use SQLAlchemy's context manager for transaction management
|
||||||
# This automatically handles commit/rollback
|
# This automatically handles commit/rollback
|
||||||
with Session(db.engine) as session:
|
with Session(db.engine) as session, session.begin():
|
||||||
# Use a single transaction for all updates
|
# Use a single transaction for all updates
|
||||||
for update_operation in updates_to_perform:
|
for update_operation in updates_to_perform:
|
||||||
filters = update_operation.filters
|
filters = update_operation.filters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue