mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)
This commit is contained in:
@@ -403,7 +403,7 @@ class DBEventLogger(AbstractEventLogger):
|
||||
logs.append(log)
|
||||
try:
|
||||
db.session.bulk_save_objects(logs)
|
||||
db.session.commit()
|
||||
db.session.commit() # pylint: disable=consider-using-transaction
|
||||
except SQLAlchemyError as ex:
|
||||
logging.error("DBEventLogger failed to log event(s)")
|
||||
logging.exception(ex)
|
||||
|
||||
Reference in New Issue
Block a user