dataroaring commented on code in PR #52812:
URL: https://github.com/apache/doris/pull/52812#discussion_r2188879913


##########
be/src/agent/task_worker_pool.cpp:
##########
@@ -609,6 +611,51 @@ Status PriorTaskWorkerPool::submit_task(const 
TAgentTaskRequest& task) {
     });
 }
 
+Status PriorTaskWorkerPool::submit_high_prior_task(const TAgentTaskRequest& 
task) {
+    const TTaskType::type task_type = task.task_type;
+    int64_t signature = task.signature;
+    std::string type_str;
+    EnumToString(TTaskType, task_type, type_str);
+    auto req = std::make_unique<TAgentTaskRequest>(task);
+
+    DCHECK(req->__isset.priority && req->priority == TPriority::HIGH);
+    do {
+        std::lock_guard lock(s_task_signatures_mtx);
+        auto& set = s_task_signatures[task_type];
+        if (!set.contains(signature)) {
+            // 如果不存在,直接放到优先队列

Review Comment:
   transalte it to english.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to