cx-oracle SessionPool is used underlying that will probe connections on
checkout and recover. Hence, trying to disable SQLAlchemy invalidate pool.
Thanks!
On Monday, January 10, 2022 at 12:04:57 PM UTC-8 Mike Bayer wrote:
>
>
> On Mon, Jan 10, 2022, at 1:30 PM, Anupama Goparaju wrote:
>
>
On Mon, Jan 10, 2022, at 1:30 PM, Anupama Goparaju wrote:
> Thanks. Looks like this works but we need to set it for every exception
> scenario. Just confirming if the exception_context is thread safe to set the
> attribute.
yes this all happens local to the execute() function call, is not
Thanks. Looks like this works but we need to set it for every exception
scenario. Just confirming if the exception_context is thread safe to set
the attribute.
Also, does this setting prevent pool invalidation on all sort of exceptions
related to connections?
@event.listens_for(Engine,
Thanks, i will give it a try.
On Thursday, January 6, 2022 at 5:23:09 AM UTC-8 Mike Bayer wrote:
> I can't guarantee that overriding private methods is safe, no.
>
> there's a public API to disable errors resulting in invalidation, I
> suggest you use that.
>
>
>
> On Wed, Jan 5, 2022, at 7:35
I can't guarantee that overriding private methods is safe, no.
there's a public API to disable errors resulting in invalidation, I suggest you
use that.
On Wed, Jan 5, 2022, at 7:35 PM, Anupama Goparaju wrote:
> I haven't read the response before and tried to skip the lib logic by
>
I haven't read the response before and tried to skip the lib logic by
overriding the function below in my child call extending the NullPool to do
nothing. Is this safe to do?
def _invalidate(self, connection, exception=None, _checkin=True):
pass
On Wednesday, January 5, 2022 at 4:33:01
Great, thanks for the info.
On Friday, November 26, 2021 at 9:30:02 AM UTC-8 Mike Bayer wrote:
> I've spent some time thinking about what might be being asked here.the
> only thing I can think of is that when a particular database connection is
> found to be in what we call a "disconnect"
I've spent some time thinking about what might be being asked here.the only
thing I can think of is that when a particular database connection is found to
be in what we call a "disconnect" state, the connection is invalidated, so that
the connection will reconnect and make a new connection.
Im not sure if I understand the question? if you don't call .invalidate(),
then the connection is not invalidated.
what does "turn off" mean ?
On Fri, Nov 26, 2021, at 11:17 AM, Anupama Goparaju wrote:
> Hi,
>
> Is there a way to safely turn off connection invalidation functionality
>