Re: [pylons-discuss] Authenticating with Oauth2/OpenID Connect

2019-06-21 Thread Mike Orr
So I can extract the data from my OAuth2 tokens now. My remaining questions are how to integrate refreshing into a Pyramid application. First, do I need to? I don't care if the token is refreshed; I'll keep using the claims stored in the Pyramid session until it expires.But if I want to

Re: [pylons-discuss] How to handle SQLA autoflush failures during Request commit?

2019-06-21 Thread Theron Luhn
Also using the cookie-cutter SQLAlchemy in front of Gunicorn. 1) I have autoflush disabled. It doesn’t reduce the mental load—as your example shows, you still need to understand when and why to use flush—and premature flushes are a headache to work around. 2) After a query fails (in this case

[pylons-discuss] How to handle SQLA autoflush failures during Request commit?

2019-06-21 Thread Jens Troeger
Hello, I’m using gunicorn in front of a Pyramid server, and I changed the configuration from 1 to 4 workers. Now I occasionally see the following exception: InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush.