def BeatOnce(dbh, interval):
  sql = """
    UPDATE Heartbeat
    SET LastHeartbeat = UNIX_TIMESTAMP()
     WHERE LastHeartbeat <= UNIX_TIMESTAMP() - %f
    """ % (interval - 1.0)
  dbh.ExecuteOrDie(sql)
dataset/ETHPy150Open google/mysql-tools/replication_heartbeat.py/BeatOnce/original