car-scheduler 0.23.0

Task scheduling and background execution for Common Agent Runtime
Documentation

car-scheduler

Task scheduling and background execution for the Common Agent Runtime.

What it does

Manages persistent task definitions and executes them based on triggers: once, interval, cron, file watch, or manual. Tasks are persisted to disk and can be spawned as background agent runs with cancellation support.

Usage

use car_scheduler::{Task, TaskTrigger, TaskStore, spawn_task};

let task = Task::new("deploy_check", "Check deployment health")
    .with_trigger(TaskTrigger::Interval, "5m")
    .with_system_prompt("You are a deployment monitor.");

let handle = spawn_task(task, runner, None);
handle.cancel(); // cancel later

Part of CAR -- see the main repo for full documentation.