hydromodpy.workflow.heartbeat#

Background heartbeat for live simulations.

While a pipeline runs, HeartbeatPulse emits one heartbeat row in workflow_events at a fixed cadence. hmp gc and hmp doctor --lifecycle derive liveness from the v_workflow_heartbeats view (MAX(ts) per run). The default 30 s cadence keeps the row comfortably below the 10-minute staleness cutoff.

Classes

HeartbeatPulse(sim_id, *[, interval_s, ...])

Emit periodic heartbeat events while a step is running.