# Scheduled refreshes in Windsor.ai

> How to set up automatic data refresh schedules for Windsor.ai destination tasks.

Scheduled refreshes keep your dashboards, spreadsheets, and warehouse tables up to date without manual intervention. Windsor runs the refresh automatically at the interval you set.

## How scheduled refreshes work

When you create a destination task, you choose a refresh schedule. Windsor runs the query at that interval and writes fresh data to the destination. Each run fetches data from the source API — scheduled refreshes bypass Windsor's [query cache](https://windsor.ai/documentation/troubleshooting/understanding-cache-data-store-and-query-cache.md) and always pull fresh data.

## Available schedules

Refresh frequency depends on your plan:

| Schedule | Plans |
| --- | --- |
| Daily | All paid plans |
| Hourly | Standard and above |
| Every 15 minutes | Professional and above |
| Weekly | All paid plans |

The Free plan does not support scheduled destination tasks.

## Setting up a schedule

1. Create or edit a destination task.
2. In the task settings, find the **Refresh schedule** option.
3. Select the interval (daily, hourly, etc.).
4. For daily refreshes, you can optionally choose the time of day.
5. Click **Save**.

The first run executes immediately after saving. Subsequent runs follow the schedule.

## Preventing task deactivation

By default, a destination task deactivates automatically if its Connector URL is not used for 3 days. To keep a task active even when the destination is not querying it (for example, a background backfill job), enable **Prevent deactivation when URL is unused** in the task settings.

## Backfilling historical data

Scheduled refreshes by default pull a rolling window of recent data (for example, the last 30 days). To load historical data going back months or years:

1. Create a destination task with a [Cache Data Store](https://windsor.ai/documentation/troubleshooting/understanding-cache-data-store-and-query-cache.md) destination and a long date range (for example, last 2 years).
2. Windsor fetches the historical data in the background.
3. Once the backfill completes, point your final destination at the Cache Data Store URL.

Backfilling is available on Basic plans and above.

## Monitoring refresh status

The task list shows each task's last run status:

- **Green "ok"** — the last refresh succeeded.
- **Red error badge** — the last refresh failed. Click the task to see the error message.

Common refresh failures include source authentication errors (the OAuth token expired) and destination permission errors (Windsor lost write access to BigQuery or Sheets).

## Troubleshooting

- [How to schedule automated reporting and data refreshing](https://windsor.ai/documentation/troubleshooting/how-to-schedule-automated-reporting-and-data-refreshing.md)
- [Understanding Cache Data Store and Query Cache](https://windsor.ai/documentation/troubleshooting/understanding-cache-data-store-and-query-cache.md)
- [How to fix authentication errors](https://windsor.ai/documentation/troubleshooting/how-to-fix-authentication-errors.md)
