def DoHeartbeat(dbh, interval, connection_lifetime):

  start_time = time.time()
  while time.time() < start_time + connection_lifetime:
    BeatOnce(dbh, interval)
    time.sleep(interval)
Update the Heartbeat table.
dataset/ETHPy150Open google/mysql-tools/replication_heartbeat.py/DoHeartbeat