Skip to main content

Crate ironclad_schedule

Crate ironclad_schedule 

Source
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

§Modules

  • heartbeat – Heartbeat daemon loop with wallet and DB context
  • scheduler – Cron expression parsing (evaluate_cron) and interval checks
  • tasksHeartbeatTask trait and built-in task implementations

§Entry Points

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§

heartbeat
scheduler
tasks

Functions§

run_cron_worker
Cron worker loop: evaluates due jobs, acquires leases, executes, and records results.