mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
cosmetic changes
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22983 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
30a45d4364
commit
fd4039aff4
1 file changed
+3
-4
@@ -417,12 +417,11 @@ public class Queue extends ResourceController implements Saveable {
|
||||
*/
|
||||
private synchronized WaitingItem scheduleInternal(Task p, int quietPeriod, List<Action> actions) {
|
||||
WaitingItem added=null;
|
||||
List<Item> items = getItems(p);
|
||||
Calendar due = new GregorianCalendar();
|
||||
Calendar due = new GregorianCalendar();
|
||||
due.add(Calendar.SECOND, quietPeriod);
|
||||
|
||||
List<Item> duplicatesInQueue = new ArrayList<Item>();
|
||||
for(Item item : items) {
|
||||
for(Item item : getItems(p)) {
|
||||
boolean shouldScheduleItem = false;
|
||||
for (QueueAction action: item.getActions(QueueAction.class)) {
|
||||
shouldScheduleItem |= action.shouldSchedule(actions);
|
||||
@@ -449,7 +448,7 @@ public class Queue extends ResourceController implements Saveable {
|
||||
if ((item instanceof WaitingItem))
|
||||
waitingDuplicates.add((WaitingItem)item);
|
||||
}
|
||||
if(duplicatesInQueue.size() == 0) {
|
||||
if(duplicatesInQueue.isEmpty()) {
|
||||
// all duplicates in the queue are already in the blocked or
|
||||
// buildable stage no need to requeue
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user