# Cơ chế chạy chiến dịch

## 1. Cơ chế chạy các chiến dịch

> <mark style="color:red;background-color:$danger;">Phần mềm sẽ ưu tiên chạy theo đúng ngày và giờ mà quý khách đã cài đặt cho từng chiến dịch.</mark>

* Chiến dịch có thời gian chạy sớm hơn ⇒ chiến dịch đó sẽ được chạy trước.
* Nếu nhiều chiến dịch được cài có cùng một ngày và giờ chạy ⇒ phần mềm sẽ tự động ưu tiên **chiến dịch được tạo sớm hơn** để chạy trước.

## 2. Update trạng thái chiến dịch

1. Khi <mark style="color:red;">tạo</mark> chiến dịch thành công, ô trạng thái chiến dịch sẽ có màu trắng và để trạng thái <mark style="background-color:purple;">"Chờ xử lý".</mark>
2. Nếu tới giờ bắt đầu <mark style="color:red;">chạy</mark> chiến dịch → ô trạng thái chiến dịch sẽ đổi sang màu vàng và để trạng thái <mark style="background-color:yellow;">"Đang xử lý"</mark>
3. Nếu chiến dịch đang <mark style="color:red;">đạt giới hạn</mark> trong giờ/ ngày → ô trạng thái chiến dịch sẽ có màu trắng và để trạng thái <mark style="background-color:purple;">"Chờ xử lý".</mark>
4. Chiến dịch chạy <mark style="color:red;">hoàn thành</mark> → ô trạng thái chiến dịch sẽ đổi sang màu xanh lá và để trạng thái <mark style="background-color:green;">"Hoàn thành"</mark>
5. Nếu chiến dịch đang chạy gặp <mark style="color:red;">lỗi</mark> → ô trạng thái chiến dịch sẽ đổi sang màu đỏ và để trạng thái <mark style="background-color:red;">"Dừng"</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://akabizauto.gitbook.io/support/tinh-nang-chung-akabiz-zalo-web/co-che-chay-chien-dich.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
