aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/exec
diff options
context:
space:
mode:
authorGravatar philwo <philwo@google.com>2018-07-30 05:24:50 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-07-30 05:26:16 -0700
commitd6ce2643811b7814be43e4a6763c1663412831fe (patch)
treeca9119d84d8e3051ab4c5405c37b7bf013f202f3 /src/main/java/com/google/devtools/build/lib/exec
parentfeb9c8759ec0fb310a5f0ede37e70f3403debb28 (diff)
Make the fallback strategy for Bazel's remote execution configurable.
RELNOTES: When using Bazel's remote execution feature and Bazel has to fallback to local execution for an action, Bazel used non-sandboxed local execution until now. From this release on, you can use the new flag --remote_local_fallback_strategy=<strategy> to tell Bazel which strategy to use in that case. PiperOrigin-RevId: 206566380
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/exec')
-rw-r--r--src/main/java/com/google/devtools/build/lib/exec/AbstractSpawnStrategy.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/AbstractSpawnStrategy.java b/src/main/java/com/google/devtools/build/lib/exec/AbstractSpawnStrategy.java
index cb40215ad8..4be5e977c4 100644
--- a/src/main/java/com/google/devtools/build/lib/exec/AbstractSpawnStrategy.java
+++ b/src/main/java/com/google/devtools/build/lib/exec/AbstractSpawnStrategy.java
@@ -58,6 +58,17 @@ public abstract class AbstractSpawnStrategy implements SandboxedSpawnActionConte
this.spawnRunner = spawnRunner;
}
+ /**
+ * Get's the {@link SpawnRunner} that this {@link AbstractSpawnStrategy} uses to actually run
+ * spawns.
+ *
+ * <p>This is considered a stop-gap until we refactor the entire SpawnStrategy / SpawnRunner
+ * mechanism to no longer need Spawn strategies.
+ */
+ public SpawnRunner getSpawnRunner() {
+ return spawnRunner;
+ }
+
@Override
public List<SpawnResult> exec(Spawn spawn, ActionExecutionContext actionExecutionContext)
throws ExecException, InterruptedException {