ruanwenjun commented on code in PR #9980:
URL: https://github.com/apache/dolphinscheduler/pull/9980#discussion_r934251266
##########
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/registry/HeartBeatTask.java:
##########
@@ -67,6 +67,15 @@ public HeartBeatTask(long startupTime,
this.heartBeat = new HeartBeat(startupTime, maxCpuloadAvg,
reservedMemory, hostWeight, workerThreadCount);
}
+ public void setWorkerWaitingTaskCount(int count){
+ this.workerWaitingTaskCount = count;
+ }
+
+ public void incrementWorkerWaitingTaskCount(){
+ this.workerWaitingTaskCount++;
Review Comment:
+1, this patch cannot solve this problem, you can use a Supplier to replace
the workerWaitingTaskCount to solve this.
--
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]