# car-scheduler

Task scheduling and background execution for the [Common Agent Runtime](https://github.com/Parslee-ai/car).

## 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

```rust
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](https://github.com/Parslee-ai/car) -- see the main repo for full documentation.
