Skip to main content

is_heartbeat_late

Function is_heartbeat_late 

Source
pub(crate) fn is_heartbeat_late(
    last_heartbeat_at: Option<DateTime<Utc>>,
    expected_interval_secs: i32,
    paused_at: Option<DateTime<Utc>>,
    now: DateTime<Utc>,
) -> bool
Expand description

Whether a phase’s last heartbeat is older than PHASE_HEARTBEAT_INTERVAL_MULTIPLIER of its intervals. A paused phase is never late.