Created
May 11, 2011 19:46
-
-
Save andymckay/967177 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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