> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduler

> Cron-based schedule creation, management, validation, and run history for agents, teams, and workflows in AgentOS.

| Example                                                                                                            | Description                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| [Basic scheduled agent run](/examples/agent-os/scheduler/basic-schedule)                                           | Start an AgentOS with the scheduler enabled, then create a schedule via the REST API.                                       |
| [Schedule management via REST API](/examples/agent-os/scheduler/schedule-management)                               | Create, list, update, enable/disable, trigger, and delete schedules via the REST API.                                       |
| [Async Schedule](/examples/agent-os/scheduler/async-schedule)                                                      | Async schedule management using the async ScheduleManager API.                                                              |
| [Scheduler Demo](/examples/agent-os/scheduler/demo)                                                                | Run the scheduler inside AgentOS with programmatic schedule creation.                                                       |
| [Multi Agent Schedules](/examples/agent-os/scheduler/multi-agent-schedules)                                        | Multi-agent scheduling with different cron patterns and payloads.                                                           |
| [Using the scheduler REST API endpoints directly](/examples/agent-os/scheduler/rest-api-schedules)                 | Create, update, trigger, and delete cron schedules through the AgentOS /schedules REST endpoints.                           |
| [Viewing and analyzing schedule run history](/examples/agent-os/scheduler/run-history)                             | Inspect schedule run history with SchedulerConsole, using simulated success and failure records.                            |
| [Schedule validation and error handling](/examples/agent-os/scheduler/schedule-validation)                         | Catch invalid cron, timezone, and duplicate-name errors when creating schedules with ScheduleManager.                       |
| [Running the scheduler inside AgentOS with automatic polling](/examples/agent-os/scheduler/scheduler-with-agentos) | Enable cron polling with scheduler=True on AgentOS and create schedules through the REST API.                               |
| [Team Workflow Schedules](/examples/agent-os/scheduler/team-workflow-schedules)                                    | Schedule team and workflow runs by cron, plus a GET health-check schedule, with ScheduleManager.                            |
| [Scheduler Tools Agent](/examples/agent-os/scheduler/scheduler-tools-agent)                                        | Give an AgentOS agent SchedulerTools to create, inspect, enable or disable, and delete cron schedules and view run history. |
