Skip to content

Commit

Permalink
Propagate InterruptedException from another place where it's possible.
Browse files Browse the repository at this point in the history
    PiperOrigin-RevId: 295762405
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent f7f2267 commit 952d580
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
import com.google.devtools.build.lib.util.GroupedList.GroupedListHelper;
import com.google.devtools.build.lib.util.Pair;
import com.google.devtools.build.skyframe.EvaluationProgressReceiver.EvaluationState;
import com.google.devtools.build.skyframe.GraphInconsistencyReceiver.Inconsistency;
import com.google.devtools.build.skyframe.NodeEntry.DependencyState;
import com.google.devtools.build.skyframe.ParallelEvaluatorContext.EnqueueParentBehavior;
import com.google.devtools.build.skyframe.QueryableGraph.Reason;
import com.google.devtools.build.skyframe.proto.GraphInconsistency.Inconsistency;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
Expand Down Expand Up @@ -153,7 +153,6 @@ public void post(ExtendedEventHandler.Postable e) {
}
}
};

private final ParallelEvaluatorContext evaluatorContext;

SkyFunctionEnvironment(
Expand Down Expand Up @@ -871,11 +870,6 @@ public String toString() {
.toString();
}

@Override
public boolean restartPermitted() {
return evaluatorContext.restartPermitted();
}

/** Thrown during environment construction if previously requested deps are no longer done. */
static class UndonePreviouslyRequestedDeps extends Exception {
private final ImmutableList<SkyKey> depKeys;
Expand Down

0 comments on commit 952d580

Please sign in to comment.