Force session flush within try/catch, for batch refresh
This commit is contained in:
parent
1bad1cd3e7
commit
b4d5d70e4c
|
@ -1114,6 +1114,7 @@ class BatchMasterView(MasterView):
|
|||
cognizer = session.query(model.User).get(user_uuid) if user_uuid else None
|
||||
try:
|
||||
self.refresh_data(session, batch, cognizer, progress=progress)
|
||||
session.flush()
|
||||
except Exception as error:
|
||||
session.rollback()
|
||||
log.warning("refreshing data for batch failed: {}".format(batch), exc_info=True)
|
||||
|
|
Loading…
Reference in a new issue