def insert(self, resource_id, hostname, filename, start, end, jobid):
""" Insert an archive record """
try:
self.insertImpl(resource_id, hostname, filename, start, end, jobid)
except OperationalError:
logging.error("Lost MySQL Connection. Attempting single reconnect")
self.con = getdbconnection(self.dbconfig)
self.insertImpl(resource_id, hostname, filename, start, end, jobid)
评论列表
文章目录