Thank you Mike!
I'm going to try this different approach.
El miércoles, 25 de marzo de 2020, 13:30:47 (UTC+1), Mike Bayer escribió:
>
>
>
> On Wed, Mar 25, 2020, at 6:27 AM, Javier Collado Jiménez wrote:
>
> Hello,
> I'm having a problem trying to cleanup sqlalchemy objects. My application
> has
On Wed, Mar 25, 2020, at 6:27 AM, Javier Collado Jiménez wrote:
> Hello,
> I'm having a problem trying to cleanup sqlalchemy objects. My application has
> a thread which handles DB connections. In some cases the thread dies and I
> want to do a cleanup so, next time the thread is started it wo
It's difficult to answer this question without knowing how your code
is structured. Are you reflecting your tables from the database, or
have you defined them statically?
What is the full stack trace when you get those errors?
Simon
On Wed, Mar 25, 2020 at 10:27 AM Javier Collado Jiménez
wrote:
Hello,
I'm having a problem trying to cleanup sqlalchemy objects. My application
has a thread which handles DB connections. In some cases the thread dies
and I want to do a cleanup so, next time the thread is started it would be
able to reconnect again.
The steps I tried are:
self.m