Skip to content

Commit 0335dc9

Browse files
ywangdmridula-s109
authored andcommitted
Show executing in pendingTasks toString output (elastic#130659)
A trivial change to make it easier to tell which task is executing. It is also consistent with the toXContent output.
1 parent c200d2d commit 0335dc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/tasks/PendingClusterTasksResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public String toString() {
4949
.append(pendingClusterTask.getSource())
5050
.append("/")
5151
.append(pendingClusterTask.getTimeInQueue())
52+
.append(pendingClusterTask.executing() ? "[executing]" : "")
5253
.append("\n");
5354
}
5455
return sb.toString();

0 commit comments

Comments
 (0)