Skip to content

Commit

Permalink
🐛 Add pool_recycle to the db connection so that queries don't fail in…
Browse files Browse the repository at this point in the history
… the middle
  • Loading branch information
Will Beddow authored and ironman5366 committed Feb 28, 2017
1 parent 5023461 commit d3312f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion will.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def start():
global db
global start_time
db_url = configuration_data["db_url"]
db = dataset.connect(db_url)
db = dataset.connect(db_url, engine_kwargs={"pool_recycle": 1})
core.db = db
API.db = db
web.db = db
Expand Down

0 comments on commit d3312f7

Please sign in to comment.