Skip to content

Commit

Permalink
Rollback session in case or exceptions (#3917)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss authored Nov 1, 2023
1 parent c5dc7a4 commit e8dbab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dispatch/plugins/dispatch_aws/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ def consume(self, db_session, project):
if entries:
client.delete_message_batch(QueueUrl=queue_url, Entries=entries)
except Exception as e:
db_session.rollback()
log.exception(e)

0 comments on commit e8dbab5

Please sign in to comment.