提交 c370e0a9 编写于 作者: K Kohsuke Kawaguchi

this entire computation appears rather pointless since the result isn't getting used

上级 5b639ae0
......@@ -1771,26 +1771,10 @@ public class Queue extends ResourceController implements Saveable {
else return new BecauseNodeIsBusy(nodes.iterator().next());
}
} else {
CauseOfBlockage c;
for (Node node : allNodes) {
if (node.toComputer().isPartiallyIdle()) {
c = canTake(node);
if (c==null) break;
}
}
return CauseOfBlockage.createNeedsMoreExecutor(Messages._Queue_WaitingForNextAvailableExecutor());
}
}
private CauseOfBlockage canTake(Node node) {
for (QueueTaskDispatcher d : QueueTaskDispatcher.all()) {
CauseOfBlockage cause = d.canTake(node, this);
if (cause!=null) return cause;
}
return null;
}
@Override
public boolean isStuck() {
Label label = getAssignedLabel();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册