

def DoHeartbeat(dbh, interval, connection_lifetime):
    'Update the Heartbeat table.\n\n    Update the Heartbeat table once per <interval> for\n    <connection_lifetime> seconds.\n\n  Args:\n    dbh: dbhandle to run heartbeat on.\n    interval: time in (s).  Pulse frequency.\n    connection_lifetime: time in (s).  Time between reconnects.\n  '
    start_time = time.time()
    while (time.time() < (start_time + connection_lifetime)):
        BeatOnce(dbh, start_time)
        time.sleep(interval)

dataset/ETHPy150Open google/mysql-tools/replication_heartbeat.py DoHeartbeat/VarMisuse@45/173 `interval`->`start_time`