Browse Source

mysql keepalive

master
dave 1 year ago
parent
commit
7ecb13fc25
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      repobot/tables.py

+ 1
- 0
repobot/tables.py View File

@@ -52,6 +52,7 @@ class SATool(cherrypy.Tool):
def bind_session(self):
cherrypy.engine.publish('bind', self.session)
cherrypy.request.db = self.session
cherrypy.request.db.connection().connection.connection.ping()

def commit_transaction(self):
cherrypy.request.db = None


Loading…
Cancel
Save