Skip to main content

Crate merlion_cron

Crate merlion_cron 

Source
Expand description

Scheduled-job manager for Merlion Agent.

Jobs are stored in ~/.merlion/cron.yaml as a list of (name, schedule, prompt) triples where schedule is a 5-field POSIX cron expression (with an optional 6th seconds field — the cron crate’s default). When merlion cron daemon runs, each job fires at its scheduled time and the resulting agent response is logged (or delivered through a gateway, if configured).

Re-exports§

pub use registry::CronRegistry;
pub use registry::Job;
pub use scheduler::run_once;
pub use scheduler::Scheduler;

Modules§

registry
scheduler
Cron scheduler — polls each job’s next fire time and dispatches to a caller-supplied JobRunner when due.

Enums§

Error

Type Aliases§

Result