Skip to content

Commit

Permalink
Add worker key hash and number of actions executed to worker metrics …
Browse files Browse the repository at this point in the history
…info item.

PiperOrigin-RevId: 655501906
Change-Id: I4d422d4395c97549c361dc5dded584a26f600772
  • Loading branch information
meisterT authored and copybara-github committed Jul 24, 2024
1 parent 497c2c3 commit 7646d6b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public byte[] get(
.append(workerMetrics.getProcessId())
.append(", ")
.append(workerMetrics.getMnemonic())
.append(" (hash: ")
.append(Long.toHexString(workerMetrics.getWorkerKeyHash()))
.append(")")
.append(", ");
List<WorkerStats> workerStats = workerMetrics.getWorkerStatsList();
if (!workerStats.isEmpty()) {
Expand All @@ -68,6 +71,10 @@ public byte[] get(
}
stringBuilder.append(remainingSeconds).append("s ago, ");
}
stringBuilder
.append("executed ")
.append(workerMetrics.getActionsExecuted())
.append(" actions, ");
if (workerMetrics.getIsSandbox()) {
stringBuilder.append("sandboxed, ");
}
Expand Down

0 comments on commit 7646d6b

Please sign in to comment.