refactor: recycle db connection to avoid "the connection is closed" exception.
This commit is contained in:
parent
063920ce59
commit
fc4a7df669
@ -63,8 +63,8 @@ class Config(dict):
|
|||||||
"POOL_OPTIONS": {
|
"POOL_OPTIONS": {
|
||||||
"POOL_SIZE": 20,
|
"POOL_SIZE": 20,
|
||||||
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
|
"MAX_OVERFLOW": int(self.get('DB_MAX_OVERFLOW')),
|
||||||
'RECYCLE': 1800,
|
"RECYCLE": 1800,
|
||||||
'TIMEOUT': 30
|
"TIMEOUT": 30
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user