def commit_database(): try: Session.commit() except SQLAlchemyError: Session.rollback() raise finally: Session.remove()
def rollback(): Session.rollback() sysconfd = g.get('sysconfd_publisher') if sysconfd: sysconfd.rollback() bus = g.get('bus_publisher') if bus: bus.rollback()
def rollback(self): Session.rollback() sysconfd.rollback() bus.rollback() auth_client.rollback()
def rollback(self): Session.rollback() sysconfd.rollback() bus.rollback()