提交 531ce717 编写于 作者: K kohsuke

simplifiedi

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22986 71c3de6d-444a-0410-be80-ed276b4c234a
上级 773fdeeb
......@@ -391,16 +391,11 @@ public class Queue extends ResourceController implements Saveable {
if (a==null) itr.remove();
}
boolean shouldSchedule = true;
for(QueueDecisionHandler h : QueueDecisionHandler.all()) {
shouldSchedule = shouldSchedule && h.shouldSchedule(p, actions);
}
WaitingItem added = null;
if (shouldSchedule) {
added = scheduleInternal(p, quietPeriod, actions);
}
return added;
for(QueueDecisionHandler h : QueueDecisionHandler.all())
if (!h.shouldSchedule(p, actions))
return null; // veto
return scheduleInternal(p, quietPeriod, actions);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册