Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created May 11, 2011 19:46
Show Gist options
  • Save andymckay/967177 to your computer and use it in GitHub Desktop.
Save andymckay/967177 to your computer and use it in GitHub Desktop.
diff --git a/services/update.py b/services/update.py
index b6f9af9..89ea72b 100644
--- a/services/update.py
+++ b/services/update.py
@@ -81,7 +81,7 @@ def getconn():
passwd=db['PASSWORD'], db=db['NAME'])
-mypool = pool.QueuePool(getconn, max_overflow=10, pool_size=5)
+mypool = pool.QueuePool(getconn, max_overflow=10, pool_size=5, recycle=3600)
see: http://www.sqlalchemy.org/docs/core/pooling.html#sqlalchemy.pool.QueuePool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment