# Data Source Configurations

Aisera Platform offers versatile options for data ingestion, allowing you to define the parameters, schedule ingestion times, and transform data on entry and exit.

{% hint style="info" %}
Not all configurations will be available for all Data Sources.
{% endhint %}

## Auto-Commit <a href="#h_01jtpfj2nshmvwv6knwhkjr0nv" id="h_01jtpfj2nshmvwv6knwhkjr0nv"></a>

By default, data ingested into the Aisera Platform is not automatically committed, and must be manually reviewed. Uncommitted files are not available to the system until they are committed. This feature allows you to bypass this step, making ingested documents immediately available to the system.

If the auto-commit flag is set to `true` in your Data Source Configuration, content ingested by the data source will be automatically approved upon ingestion.

<figure><img src="https://support.aisera.com/hc/article_attachments/36439181250701" alt=""><figcaption><p>Auto Commit Option</p></figcaption></figure>

## Schedule

The schedule field allows you to determine how frequently a Data Source will ingest. Ingestion can be  automatically performed **On Demand**, **Every 20 Minutes**, **Every 30 Minutes**, **Every 45 Minutes**, **Hourly**, **Daily**, **Weekly**, or you may specify a custom schedule using Cron expressions.

#### UNIX Cron Syntax

A [cron expression](https://en.wikipedia.org/wiki/Cron) is a string used to define a schedule for running tasks at specific times or intervals. It is commonly used in Unix-based systems for scheduling repetitive tasks. A typical cron expression consists of five or six field, each representing a different unit of time:

1. **Minute** (0 - 59)
2. **Hour** (0 - 23)
3. **Day of the month** (1 - 31)
4. **Month** (1 - 12)
5. **Day of the week** (0 - 7, where both 0 and 7 represent Sunday)

For example, the cron expression `0 3 * * 2,4` is used to schedule a task to run at 03:00 AM on Tuesdays and Thursdays 1.&#x20;

### Setting a Custom Recurring Schedule&#x20;

To set a custom recurring schedule:

1. Navigate to **Settings > Data Source**.
2. Open an existing data source.
3. Choose the **pencil icon** in the upper-right corner to edit the data source.
4. Make sure you're in the **General** tab of the **Edit Data Source** window.
5. Under Schedule, select **Custom** from the pull down list.
6. Select **+ Add Schedule**
7. Enter a cron expression in the field that appears.
8. Choose the **+ Add Schedule** button to add another schedule line. Repeat this step to add more lines, up to a maximum of five.<br>

   <div align="left"><figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2F2983236984-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiZkLJr3EjXkd2tHYiQJP%252Fuploads%252FBN2zaeXPR52KFnH7aj5s%252Funknown.png%3Falt%3Dmedia%26token%3D66f7c402-6d1e-4f7d-b6c4-27446e8120f4&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=2270bb21&#x26;sv=2" alt="" width="563"><figcaption></figcaption></figure></div>
9. Click **OK**.

You may quickly reference the schedule of a Data Source by referencing the **Schedule** section on the right side of the **Data Source Details** page.

<figure><img src="https://docs.aisera.com/~gitbook/image?url=https%3A%2F%2F2983236984-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FiZkLJr3EjXkd2tHYiQJP%252Fuploads%252FuQ1LsUj3kRP0Dvvf5JFq%252Funknown.png%3Falt%3Dmedia%26token%3D6a9bf063-328e-4e66-ac7c-52503f167088&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=fc385f9e&#x26;sv=2" alt=""><figcaption></figcaption></figure>
