@Override public Mapping map(Task task, MappingWorksheet worksheet) { if (Queue.isBlockedByShutdown(task)) { // if we are quieting down, don't start anything new so that // all executors will be eventually free. return null; } return base.map(task, worksheet); }
public void setLoadBalancer(@Nonnull LoadBalancer loadBalancer) { if(loadBalancer==null) throw new IllegalArgumentException(); this.loadBalancer = loadBalancer.sanitize(); }
Mapping m = Jenkins.getInstance().getQueue().getLoadBalancer().map(bi.task, worksheet); if (m==null) return null;
public Queue(@Nonnull LoadBalancer loadBalancer) { this.loadBalancer = loadBalancer.sanitize(); // if all the executors are busy doing something, then the queue won't be maintained in // timely fashion, so use another thread to make sure it happens. new MaintainTask(this).periodic(); }
Mapping m = loadBalancer.map(p.task, ws); if (m == null) {
public void setLoadBalancer(LoadBalancer loadBalancer) { if (loadBalancer == null) { throw new IllegalArgumentException(); } this.loadBalancer = loadBalancer.sanitize(); }
@Override public Mapping map(Task task, MappingWorksheet worksheet) { if (Queue.ifBlockedByHudsonShutdown(task)) { // if we are quieting down, don't start anything new so that // all executors will be eventually free. return null; } return base.map(task, worksheet); }
public void setLoadBalancer(@Nonnull LoadBalancer loadBalancer) { if(loadBalancer==null) throw new IllegalArgumentException(); this.loadBalancer = loadBalancer.sanitize(); }
@Override public Mapping map(Task task, MappingWorksheet worksheet) { if (Queue.isBlockedByShutdown(task)) { // if we are quieting down, don't start anything new so that // all executors will be eventually free. return null; } return base.map(task, worksheet); }
public Queue(@Nonnull LoadBalancer loadBalancer) { this.loadBalancer = loadBalancer.sanitize(); // if all the executors are busy doing something, then the queue won't be maintained in // timely fashion, so use another thread to make sure it happens. new MaintainTask(this).periodic(); }
@Override public Mapping map(Task task, MappingWorksheet worksheet) { if (Queue.ifBlockedByHudsonShutdown(task)) { // if we are quieting down, don't start anything new so that // all executors will be eventually free. return null; } return base.map(task, worksheet); }
public Queue(LoadBalancer loadBalancer) { this.loadBalancer = loadBalancer.sanitize(); // if all the executors are busy doing something, then the queue won't be maintained in // timely fashion, so use another thread to make sure it happens. new MaintainTask(this); }
@Override public Mapping map(Task task, MappingWorksheet worksheet) { if (Queue.ifBlockedByHudsonShutdown(task)) { // if we are quieting down, don't start anything new so that // all executors will be eventually free. return null; } return base.map(task, worksheet); }
public Queue(LoadBalancer loadBalancer) { this.loadBalancer = loadBalancer.sanitize(); // if all the executors are busy doing something, then the queue won't be maintained in // timely fashion, so use another thread to make sure it happens. new MaintainTask(this); }
@Override public Mapping map(Task task, MappingWorksheet worksheet) { if (Queue.ifBlockedByHudsonShutdown(task)) { // if we are quieting down, don't start anything new so that // all executors will be eventually free. return null; } return base.map(task, worksheet); }
public Queue(LoadBalancer loadBalancer) { this.loadBalancer = loadBalancer.sanitize(); // if all the executors are busy doing something, then the queue won't be maintained in // timely fashion, so use another thread to make sure it happens. new MaintainTask(this); }
Mapping m = loadBalancer.map(p.task, ws);
public Queue(LoadBalancer loadBalancer) { this.loadBalancer = loadBalancer.sanitize(); // if all the executors are busy doing something, then the queue won't be maintained in // timely fashion, so use another thread to make sure it happens. new MaintainTask(this); }
Mapping m = Jenkins.getInstance().getQueue().getLoadBalancer().map(bi.task, worksheet); if (m==null) return null;
Mapping m = loadBalancer.map(p.task, ws); if (m == null)