Skip to main content

Module schedule

Module schedule 

Source
Expand description

Scheduled agent execution.

Enables cron-based and webhook-triggered agent runs. Schedules are persisted as JSON in ~/.config/agent-code/schedules/ and executed by a background daemon loop.

§Usage

agent schedule add "0 9 * * *" --prompt "run tests" --name daily-tests
agent schedule list
agent schedule remove daily-tests
agent schedule run daily-tests
agent daemon                     # start the scheduler loop

Re-exports§

pub use cron::CronExpr;
pub use executor::JobOutcome;
pub use executor::ScheduleExecutor;
pub use storage::Schedule;
pub use storage::ScheduleStore;

Modules§

cron
Minimal cron expression parser.
executor
Schedule execution engine.
storage
Schedule persistence.