njnu-seafish commented on code in PR #17796:
URL: 
https://github.com/apache/dolphinscheduler/pull/17796#discussion_r2625701912


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/engine/task/dispatcher/WorkerGroupDispatcher.java:
##########
@@ -84,23 +95,77 @@ public void run() {
     }
 
     private void doDispatchTask(ITaskExecutionRunnable taskExecutionRunnable) {
+        final int taskId = taskExecutionRunnable.getId();
+        final TaskExecutionContext taskExecutionContext = 
taskExecutionRunnable.getTaskExecutionContext();
+        final long timeoutMs = this.dispatchTimeout.toMillis();

Review Comment:
   > It's better to store the mills rather than store duration, then you can 
avoid execute `dispatchTimeout.toMillis()` here.
   
   Using a duration format like '5m' is more concise and readable. Most other 
configurations I’ve seen also avoid millisecond-level granularity.



-- 
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]

Reply via email to