Expand description
§ironclad-schedule
Unified cron/heartbeat scheduler for the Ironclad agent runtime. Jobs are
persisted in SQLite (ironclad-db/cron.rs) with lease-based mutual
exclusion to prevent duplicate execution across restarts.
§Key Types
HeartbeatDaemon– Periodic tick loop driving registered heartbeat tasksDurableScheduler– Cron expression and fixed-interval evaluationHeartbeatTask/TaskResult– Pluggable task trait and outcome type
§Modules
heartbeat– Heartbeat daemon loop with wallet and DB contextscheduler– Cron expression parsing (evaluate_cron) and interval checkstasks–HeartbeatTasktrait and built-in task implementations
§Entry Points
run_heartbeat()– Start the heartbeat daemonrun_cron_worker()– Start the cron worker (lease, execute, record)
Re-exports§
pub use heartbeat::run as run_heartbeat;pub use heartbeat::HeartbeatDaemon;pub use heartbeat::TickContext;pub use scheduler::DurableScheduler;pub use tasks::HeartbeatTask;pub use tasks::TaskResult;
Modules§
Functions§
- run_
cron_ worker - Cron worker loop: evaluates due jobs, acquires leases, executes, and records results.