Problem is, using turbogears I don't really have access to the
pool_recycle without some horrible monkey patch.

FYI, my ping seems to work, so I'm going with that for now.

cheers.
-percious

On Mar 5, 1:00 pm, Sébastien LELONG <[EMAIL PROTECTED]
securities.fr> wrote:
> > I need to ping the Mysql database to keep it alive.
>
> > Is there a simple way to do this with SA?
>
> Maybe you'd want to have a look at the "pool_recycle" argument of
> create_engine. It'll make the connection pool beeing checked if active, and
> potentially recycle the connections if they are too old. Search for "MySQL
> has gone away", you'll have different threads talking about that.
>
> Hope it helps.
>
> Seb
> --
> Sébastien LELONG
> sebastien.lelong[at]sirloon.nethttp://www.sirloon.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to