# Add Schedule

Khi bạn muốn lên lịch chạy automation, bạn có thể chọn chức năng này. Bạn chọn các profile để chạy, sau đó chọn Button Automation.

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2F68JTcCaOOTrkQwx8bizZ%2Fimage.png?alt=media&#x26;token=6e432050-f06d-4720-a687-48c76089874c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2F9vByeBex0kitVa3jb6uQ%2Fimage.png?alt=media&#x26;token=7939719e-8069-40a0-84a4-9b5c5abf1d66" alt=""><figcaption></figcaption></figure>

**Name:** Điền name của Schedule, bạn có thể bỏ trống trường này.

**Script:** Chọn script để chạy

**Task type:** Có 2 loại chính đó là Common và Schedule. Với common thì profile sẽ được chạy ngay sau lúc tạo. Còn Schedule bạn có thể đặt lịch chạy của các profiles với script bạn chọn.

Với Schedule bạn có thể chọn Execution frequency:

* Once: Chạy 1 lần trong ngày. bạn có thể chọn ngày và giờ chạy.

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FWDw5CleJ6WykLI5XnoR7%2Fimage.png?alt=media&#x26;token=c8ede080-e5f3-42d4-b759-1a76ac7bbf16" alt=""><figcaption></figcaption></figure>

* Interval: Chạy trong khoảng thời gian từ start time đến end time. Bạn cần nhập Each time delay, trường này bạn cần nhập khoảng thời gian delay giữa các lần chạy. Ví dụ bạn nhập là 5 thì khi chạy xong một lần 5 phút sau mới chạy lần thứ 2, cứ thế cho đến hết end time.

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FacyZmpwYT5Qm7ilbN4cH%2Fimage.png?alt=media&#x26;token=e00cc3d0-b2df-4655-baaf-39b65d00477a" alt=""><figcaption></figcaption></figure>

* Daily: Chạy hằng ngày. Ở đấy bạn cần chọn Execution time là thời gian chạy script trong khoảng từ start time đến end time.&#x20;

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2F6LW5EhWW4cPUSBxREvcs%2Fimage.png?alt=media&#x26;token=8c830e62-3fa9-4fd8-a158-e38ef41edad0" alt=""><figcaption></figcaption></figure>

* Weekly: Chạy hàng tuần. Tại Execution time bạn có thể chọn thứ để chạy và giờ chạy. Và chọn thời gian bắt đầu và thời gian kết thúc.

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FWqii3NSC7aISV1gPkHYW%2Fimage.png?alt=media&#x26;token=9f166c5a-07b9-4045-8340-b50337f063f1" alt=""><figcaption></figcaption></figure>

* Monthly: Chạy hàng tháng. Bạn có thể chọn ngày và giờ để chạy, chọn thời gian bắt đầu và thời gian kêt thúc. Ví dụ bạn chọn ngày 13 thì đến ngày 13 và đến giờ thì sẽ chạy profile.

<figure><img src="https://699023340-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiEhmc20xmuwcG5ThYMWS%2Fuploads%2FxG7fAgVhnxMOakWDKaLw%2Fimage.png?alt=media&#x26;token=99de7069-d31b-4126-a92c-330110ccf513" alt=""><figcaption></figcaption></figure>
