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: completions.Client,
  persona: String,
  tool_defs: List(completions.ToolDefinition),
  tools: List(tool.Tool),
  max_rounds: Int,
  conn: sqlight.Connection,
  user_key: String,
) -> shapes.Service

Service shape — supervised: True. Polling loop runs in a spawned process.

Search Document