# Scheduler

In the previous articles, we saw how [data profiles](https://documentation.astera.com/astera-data-stack-v10/data-governance/data-profile) and [data quality](https://documentation.astera.com/astera-data-stack-v10/data-governance/data-quality) can be generated manually. This section will look at how we can schedule these to run automatically based on a defined frequency, avoiding manual intervention.

1. Navigate to the scheduler through the commands at the top.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FentAxn71rjjaP8RQTxhd%2FCapture.PNG?alt=media&#x26;token=d435ba2e-d608-48a0-a449-b6de152bb1ea" alt=""><figcaption></figcaption></figure>

You will be directed to the scheduler page.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fn8n3qwpUozNFBnXymeaS%2FCapture1.PNG?alt=media&#x26;token=d91f3be2-8a04-4360-aef4-e82f4920c31f" alt=""><figcaption></figcaption></figure>

2. Click on *Add Schedule*.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F88Ma5SndLeytnFbttiDf%2FCapture2.PNG?alt=media&#x26;token=6aa76c9f-03b9-428c-9c99-4ce87b467727" alt=""><figcaption></figcaption></figure>

A panel on the right will appear where you can start defining your schedule details.<br>

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FKSzhR2RjbqQxKQkuLedb%2FCapture3.PNG?alt=media&#x26;token=dac26fe1-5911-4d05-b5d2-abba8eac47af" alt=""><figcaption></figcaption></figure>

3. Select the data asset from the Name drop-down menu for which you want to schedule the data profile and data quality rules.

{% hint style="info" %}
**Note:** Only tabular data assets, such as Excel files and database tables, will be populated in the list.&#x20;
{% endhint %}

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fnpx2Ys2PgJpVmF9m15Zt%2FCapture4.PNG?alt=media&#x26;token=34365106-7a74-4ab3-bc31-88d73143acd3" alt=""><figcaption></figcaption></figure>

4. Next, select the Server you want the job to run on.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F3Mmhn9Fux7sNS1s5zTNM%2FCapture5.PNG?alt=media&#x26;token=16598cb5-91a9-4a11-a637-2cf8c83b3e09" alt=""><figcaption></figcaption></figure>

In this case, we only have a single server listed. So, we will be selecting that.

5. All schedules created are set to active by default. You can choose to change this if needed.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FyYvRqWzrwBinYlksGIm6%2FCapture6.PNG?alt=media&#x26;token=59235c7f-111b-4e5b-b8fb-0995622fee6e" alt=""><figcaption></figcaption></figure>

6. We will now define the frequency at which we want this schedule to run.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FBVHq6W8oIuQ7w2HWOPLG%2FCapture7.PNG?alt=media&#x26;token=1f2243e2-72a5-43bf-9f43-504ac9d1e881" alt=""><figcaption></figcaption></figure>

We have a few options for this. Selecting a specific frequency updates the panel with the required fields.

7. In this case, we will be selecting Daily since we want the data profiling and quality for this asset to be updated daily.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F3zjiN4xPfQfIP0hJFTAY%2FCapture8.PNG?alt=media&#x26;token=a4e34481-236d-4ce2-8fb6-42ec54784743" alt=""><figcaption></figcaption></figure>

Note that some of the configuration fields have changed.

8. Define the start date and time and when you want to perform this task.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FO7Uzt5o29E4ULw7LQ2fn%2FCapture9.PNG?alt=media&#x26;token=f70cb964-a080-48f5-beb5-51afec911931" alt=""><figcaption></figcaption></figure>

9. Click on *Confirm*.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FgnJOrfR2WCiCjI66iugo%2FCapture10.PNG?alt=media&#x26;token=cc2fe350-997c-4125-9725-42186dae0f97" alt=""><figcaption></figcaption></figure>

The created schedule has been added to the grid.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FCoImlXf4uMEL0Bb39DuZ%2FCapture11.PNG?alt=media&#x26;token=c4a07c51-72c7-45aa-8292-ec4bf98c620a" alt=""><figcaption></figcaption></figure>

10. Once the schedule is triggered, the status will be updated. Along with the last and next run details.

<figure><img src="https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FbgSMunWlrc29mjj9g0HW%2FCapture12.PNG?alt=media&#x26;token=110a58ba-2ee2-4ed1-9b92-680d47fd2623" alt=""><figcaption></figcaption></figure>
