On Jun 21, 2013, at 9:19 AM, Ryan Kelly <[email protected]> wrote:
> I'd like to manually trigger a connection recycle/recreate even, but I'm > not sure how to do so. The recreate method of the Pool class returns a > new pool instance, but I'd be surprised if it was safe to assign it back > to, e.g., session.connection().connection._pool. > > What is the correct way to trigger a connection recycle given a session? I'd start with session.connection().invalidate() , that will dump and replace the existing DBAPI connection in place. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
