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

# Context Schedules

> Automate reconciliation by defining when the Matcher engine should run matching for a context without manual intervention.

Use the **Schedules** section in the context detail page to automate reconciliation execution. Each schedule defines when the Matcher engine should automatically run matching for the selected context.

## Accessing schedules

***

Schedules are managed from within a context detail page:

1. Navigate to **Reconciliation → Contexts** in the left sidebar.
2. Click on a context to open its detail page.
3. Scroll to the **Schedules** section.

<Note>
  The Schedules section is only available after the context has been saved. For new contexts, save the context first to enable schedule configuration.
</Note>

## Schedule list

***

The table displays all schedules configured for the context:

| Column              | Description                                              |
| ------------------- | -------------------------------------------------------- |
| **Cron Expression** | The cron expression that defines the execution frequency |
| **Status**          | Whether the schedule is **Enabled** or **Disabled**      |
| **Last Run**        | Timestamp of the last automated execution                |
| **Next Run**        | Timestamp of the next scheduled execution                |
| **Actions**         | Edit or delete the schedule                              |

## Creating a schedule

***

Click the **New Schedule** button in the Schedules section header. A side panel opens with the schedule form.

### Frequency presets

Select a frequency to configure the schedule using a guided form:

| Frequency         | Configuration                                                                  |
| ----------------- | ------------------------------------------------------------------------------ |
| **Every hour**    | Select the minute of the hour (0–59)                                           |
| **Daily**         | Select hour and minute                                                         |
| **Weekly**        | Select hour, minute, and one or more days of the week                          |
| **Monthly**       | Select hour, minute, and day of the month (1–31)                               |
| **Custom (cron)** | Enter a cron expression directly in the format `minute hour day month weekday` |

<Accordion title="How to write a cron expression">
  A **cron expression** uses five space-separated fields: `minute hour day-of-month month day-of-week`.

  | Field        | Range              |
  | ------------ | ------------------ |
  | Minute       | `0–59`             |
  | Hour         | `0–23`             |
  | Day of month | `1–31`             |
  | Month        | `1–12`             |
  | Day of week  | `0–6` (0 = Sunday) |

  Common special characters:

  * `*` — any value
  * `,` — list of values (e.g., `1,15,30`)
  * `-` — range (e.g., `9-17`)
  * `/` — step (e.g., `*/15` for every 15 units)

  Examples:

  * `0 6 * * *` — every day at 06:00
  * `*/15 * * * *` — every 15 minutes
  * `0 9 * * 1-5` — at 09:00 on weekdays

  Need to validate an expression? Use [crontab.guru](https://crontab.guru) to preview when it will run.
</Accordion>

### Enabled toggle

Use the **Enabled** toggle to activate or deactivate the schedule. Disabled schedules remain configured but do not trigger automatic execution.

### Expression preview

Below the form fields, a preview box displays:

* A human-readable description of the schedule (e.g., "Every day at 06:00")
* The generated cron expression

### Advanced override

For preset frequencies (Hourly, Daily, Weekly, Monthly), an **Advanced** collapsible section allows you to override the generated cron expression with a custom value.

## Editing a schedule

***

Click the **Actions** menu (⋮) on a schedule row and select **Edit**. The side panel opens with the current schedule values pre-filled.

When editing, the panel also displays the **Last run** and **Next run** timestamps if available.

## Deleting a schedule

***

Click the **Actions** menu (⋮) on a schedule row and select **Delete**. A confirmation dialog appears before the schedule is permanently removed.

<Warning>
  Deleting a schedule is irreversible. The schedule will stop executing immediately.
</Warning>
