Commit b9ea97eb authored by echel0n's avatar echel0n

Changed close to remove for database sessions being access from web handlers,...

Changed close to remove for database sessions being access from web handlers, helps resolve QueuePool overflow issues.
parent bc7c3599
......@@ -203,6 +203,6 @@ class BaseHandler(RequestHandler, ABC):
def on_finish(self):
if self.db_session:
self.db_session.commit()
self.db_session.close()
self.db_session.remove()
super(BaseHandler, self).on_finish()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment