aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java
diff options
context:
space:
mode:
authorGravatar Janak Ramakrishnan <janakr@google.com>2016-08-18 08:47:26 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-08-18 17:25:08 +0000
commit452def0c6d0689e90e63ae3f4dab509718102fc5 (patch)
tree08f6b9924e6d95d51f5d1977e89a34c0ef513d5e /src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java
parenteff2535cc02dcabef5d401ff1750fb85f34e5595 (diff)
Stop catching InterruptedException in remote execution.
If the user interrupts the build, they probably don't want local fallback to happen. Also clean up an unused method and parameter. -- Change-Id: I6bf80fa110bbba911b0743f24c25240c208c98d1 Reviewed-on: https://bazel-review.googlesource.com/5470 MOS_MIGRATED_REVID=130612791
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java
index 22def42a07..198e9262a7 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteWorkExecutor.java
@@ -21,7 +21,6 @@ import com.google.devtools.build.lib.actions.ActionInputFileCache;
import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadCompatible;
import com.google.devtools.build.lib.remote.RemoteProtocol.RemoteWorkResponse;
import com.google.devtools.build.lib.vfs.Path;
-
import java.io.IOException;
import java.util.Collection;
@@ -31,11 +30,10 @@ import java.util.Collection;
@ThreadCompatible
public interface RemoteWorkExecutor {
/**
- * Submit the work to this work executor.
- * The output of running this action should be written to {@link RemoteActionCache} indexed
- * by |actionOutputKey|.
+ * Submit the work to this work executor. The output of running this action should be written to
+ * {@link RemoteActionCache} indexed by {@code actionOutputKey}.
*
- * Returns a future for the response of this work request.
+ * <p>Returns a future for the response of this work request.
*/
ListenableFuture<RemoteWorkResponse> executeRemotely(
Path execRoot,
@@ -46,5 +44,5 @@ public interface RemoteWorkExecutor {
ImmutableMap<String, String> environment,
Collection<? extends ActionInput> outputs,
int timeout)
- throws IOException, WorkTooLargeException;
+ throws IOException, WorkTooLargeException, InterruptedException;
}