aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2017-03-10 11:34:06 +0000
committerGravatar Vladimir Moskva <vladmos@google.com>2017-03-10 14:12:02 +0000
commit7032c9b367cc7f5d4e8562a1426a0f8dc353c2cc (patch)
tree3ed9a265e316fd38ec5eb2c980df1f186b00d661 /src/main
parent25df9e962012eb6ac8bf01a031ddf2c257f5cce5 (diff)
Also report the spawn from the remote strategy
It's silly that we require every spawn strategy to do this individually, and the new spawn scheduler will fix this. However, it's useful to add this for debugging. -- PiperOrigin-RevId: 149743992 MOS_MIGRATED_REVID=149743992
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java
index c1e3666f61..86435ba106 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnStrategy.java
@@ -193,6 +193,9 @@ final class RemoteSpawnStrategy implements SpawnActionContext {
execLocally(spawn, actionExecutionContext, actionCache, actionKey);
return;
}
+ if (executor.reportsSubcommands()) {
+ executor.reportSubcommand(spawn);
+ }
executor.getEventBus().post(
ActionStatusMessage.runningStrategy(spawn.getResourceOwner(), "remote"));