(self)
sqlalchemy connection close. 
        fixed sqlalchemy error: 'Can't reconnect until invalid'. new in version 2.2
sqlalchemy connection close. 
        fixed sqlalchemy error: 'Can't reconnect until invalid'. new in version 2.2
sqlalchemy connection close . fixed sqlalchemy error : Can t reconnect until invalid . new in version 2 . 2
def on_finish(self):
        """sqlalchemy connection close. 
        fixed sqlalchemy error: 'Can't reconnect until invalid'. new in version 2.2"""
        db.session.remove()
def on_finish ( self ) : db . session . remove ( )