Skip to content

Commit 47a869a

Browse files
authored
Show executing in pendingTasks toString output (#130659)
A trivial change to make it easier to tell which task is executing. It is also consistent with the toXContent output.
1 parent 6921735 commit 47a869a

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)