services/cron/cron

Cron service — traditional cron scheduler for shell commands and agent prompts. Polls on a fixed interval, evaluates cron expressions, and executes due jobs.

Jobs are defined in agent.toml as [cron.<alias>] sections. Each job has a schedule (5-field cron expression), a type (shell or agent), and either a command or prompt.

Values

pub fn service(
  client: client.Client,
  persona: String,
  tool_defs: List(tool_def.ToolDefinition),
  tools: List(tool.Tool),
  max_rounds: Int,
  db_path: String,
  user_key: String,
) -> service.Service

Service shape — supervised: True. Polling loop runs in a spawned process. Opens its own SQLite connection inside the spawned process because SQLite NIFs are process-specific.

Search Document