rbankar7 commented on code in PR #15991:
URL: https://github.com/apache/druid/pull/15991#discussion_r1515793864
##########
indexing-service/src/main/java/org/apache/druid/indexing/worker/WorkerTaskManager.java:
##########
@@ -179,6 +186,16 @@ public Map<String, TaskAnnouncement> getCompletedTasks()
return completedTasks;
}
+ public Map<String, Task> getRunningTasks()
+ {
+ return CollectionUtils.mapValues(runningTasks, detail -> detail.task);
+ }
+
+ public Map<String, Task> getAssignedTasks()
+ {
+ return assignedTasks;
+ }
Review Comment:
removed these methods as these were getting called only once by
`getWorkerRunningTasks` and `getWorkerAssignedTasks`
--
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]