yiguolei commented on code in PR #27969:
URL: https://github.com/apache/doris/pull/27969#discussion_r1414921943


##########
fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/QueueOfferToken.java:
##########
@@ -17,30 +17,101 @@
 
 package org.apache.doris.resource.workloadgroup;
 
+import java.util.concurrent.atomic.AtomicLong;
+import java.util.concurrent.locks.Condition;
+import java.util.concurrent.locks.ReentrantLock;
+
 // used to mark QueryQueue offer result
 // if offer failed, then need to cancel query
 // and return failed reason to user client
 public class QueueOfferToken {
 
-    private Boolean offerResult;
+    enum TokenState {
+        ENQUEUE_FAILED,
+        ENQUEUE_SUCCESS,
+        READY_TO_RUN
+    }
+
+    static AtomicLong tokenIdGenerator = new AtomicLong(0);
+
+    private long tokenId = 0;
+
+    private TokenState tokenState;
+
+    private long waitTimeout = 0;
+
+    private long enqueueTime = 0;

Review Comment:
   No, I will use it in the future. I will display enqueue time in wg tvf or 
show process list.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to