you could poke around in sqlalchemy.orm.session._sessions

On Jun 25, 2013, at 10:29 AM, Chris Withers <[email protected]> wrote:

> Hi All,
> 
> I'm sure many of us have been there with sqlalchemy and postgres 
> transactions, especially when running tests:
> 
> - something is broken/wrong with my code
> - the test fails
> - I don't get any output because something else tries to do something 
> (cleanup, whatever) with the database and hangs, blocked on the idle 
> transaction left by the code under test
> 
> How can I get hold of all connections opened by all sessions and force 
> abort/rollback/destory all transactions they may have open?
> 
> cheers,
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
> 
> -- 
> 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.
> 
> 

-- 
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.


Reply via email to