Skip to main content

Module heartbeat

Module heartbeat 

Source
Expand description

Heartbeat scheduler for agent lifecycle management.

The HeartbeatScheduler manages periodic wake-up cycles for agents. Each registered agent goes through a HeartbeatPhase cycle: Wake -> CheckQueue -> Execute -> Sleep -> Report, then back to Wake.

This is a separate abstraction from the cron system: cron handles arbitrary scheduled jobs, while heartbeats manage the regular tick-based lifecycle of agents.

Structs§

HeartbeatConfig
Configuration for a single agent’s heartbeat.
HeartbeatScheduler
Manages heartbeat schedules for multiple agents.
HeartbeatTickResult
Result of a single tick for one agent.

Enums§

HeartbeatPhase
Phase of an agent’s heartbeat cycle.