Re: [sqlalchemy] MySQL has gone away

2013-01-07 Thread Diego Woitasen
On Thursday, December 27, 2012 10:22:08 PM UTC-3, Michael Bayer wrote: On Dec 27, 2012, at 6:28 PM, Diego Woitasen wrote: Hi, I know that this was discussed several times in the past but I can't solve the problem with the tip that I read in this list. Every morning my application dies

Re: [sqlalchemy] MySQL has gone away

2013-01-07 Thread Michael Bayer
On Jan 7, 2013, at 7:20 PM, Diego Woitasen wrote: I'm back to this :) My problem was that I'm not closing the session properly. My new question is... is there a way to autoclose the session? My example, at the end of the scope? What's the recommend way to do this? I've read

Re: [sqlalchemy] MySQL has gone away

2013-01-07 Thread Warwick Prince
On Jan 7, 2013, at 7:20 PM, Diego Woitasen wrote: I'm back to this :) My problem was that I'm not closing the session properly. My new question is... is there a way to autoclose the session? My example, at the end of the scope? What's the recommend way to do this? I've read

Re: [sqlalchemy] MySQL has gone away

2013-01-07 Thread Michael Bayer
On Jan 7, 2013, at 7:47 PM, Warwick Prince wrote: On Jan 7, 2013, at 7:20 PM, Diego Woitasen wrote: I'm back to this :) My problem was that I'm not closing the session properly. My new question is... is there a way to autoclose the session? My example, at the end of the scope?

[sqlalchemy] MySQL has gone away

2012-12-27 Thread Diego Woitasen
Hi, I know that this was discussed several times in the past but I can't solve the problem with the tip that I read in this list. Every morning my application dies with the msg MySQL has gone away. My app has different modules (which are process) and this errors appears in the simplest one and

Re: [sqlalchemy] MySQL has gone away

2012-12-27 Thread Michael Bayer
On Dec 27, 2012, at 6:28 PM, Diego Woitasen wrote: Hi, I know that this was discussed several times in the past but I can't solve the problem with the tip that I read in this list. Every morning my application dies with the msg MySQL has gone away. My app has different modules (which

[sqlalchemy] MySQL has gone away error

2009-12-24 Thread karikris...@gmail.com
I have the follwing setting and I create engine from config. sqlalchemy.url : mysql://sfdev:sf...@localhost:3306/sfdev sqlalchemy.pool_recycle : 3600 sqlalchemy.convert_unicode : true I am getting the following error. Seems like recycle required, but I have mentioned recycle in the

[sqlalchemy] MySql has gone away

2009-04-16 Thread reetesh nigam
Hi All, I was getting My Sql has gone away, then i set sqlalchemy.pool_recylce=3600 in prod.cfg. it was woking fine but but still some time i get the same error i.e MySql has gone away. Can any one tell me what should i do? Thanks anD Regards Reetesh Nigam