Skip to content

Commit

Permalink
When in sync mode, log the invocation BES upload is waiting on to finish
Browse files Browse the repository at this point in the history
Makes it easier to attribute where time was spent when grepping logs.

PiperOrigin-RevId: 425676197
  • Loading branch information
michajlo authored and copybara-github committed Feb 1, 2022
1 parent 9b73ea4 commit 191c4a7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ private void waitForBuildEventTransportsToClose(
},
executor));

try (AutoProfiler p = GoogleAutoProfilerUtils.logged("waiting for BES close")) {
try (AutoProfiler p =
GoogleAutoProfilerUtils.logged(
"waiting for BES close for invocation " + this.invocationId)) {
Uninterruptibles.getUninterruptibly(Futures.allAsList(transportFutures.values()));
}
} catch (ExecutionException e) {
Expand Down

0 comments on commit 191c4a7

Please sign in to comment.