Add ability to set pool_recycle via config.
This commit is contained in:
parent
146e6e6588
commit
8e693129e6
@ -120,7 +120,7 @@ class StaticNodeAssignment(object):
|
||||
sqlkw["max_overflow"] = 0
|
||||
if "mysql" in self.driver:
|
||||
# Guard against the db closing idle conections.
|
||||
sqlkw["pool_recycle"] = 3600
|
||||
sqlkw["pool_recycle"] = kw.get("pool_recycle", 3600)
|
||||
self._engine = create_engine(sqluri, **sqlkw)
|
||||
users.create(self._engine, checkfirst=True)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user