(self, *args, **kwargs)
Close the database session on task completion.
Close the database session on task completion.
Close the database session on task completion .
def after_return(self, *args, **kwargs):
        """Close the database session on task completion."""
        db_session.remove()
        super().after_return(*args, **kwargs)
def after_return ( self , * args , * * kwargs ) : db_session . remove ( ) super ( ) . after_return ( * args , * * kwargs )