diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java index 74956b6242340bb479a001d92a8088b45948e89d..5bfb2f3ca459b6e32bbd4b8f9e97bcd4203f55ea 100644 --- a/core/src/main/java/hudson/model/Queue.java +++ b/core/src/main/java/hudson/model/Queue.java @@ -1329,7 +1329,12 @@ public class Queue extends ResourceController implements Saveable { } /** - * Extension point for deciding if particular job should be scheduled or not + * Extension point for deciding if particular job should be scheduled or not. + * + *

+ * This handler is consulted every time someone tries to submit a task to the queue. + * If any of the registered handlers returns false, the task will not be added + * to the queue, and the task will never get executed. * *

* This extension point is still a subject to change, as we are seeking more @@ -1339,7 +1344,7 @@ public class Queue extends ResourceController implements Saveable { */ public static abstract class QueueDecisionHandler implements ExtensionPoint { /** - * Returns whether the new item should be scheduled. + * Returns whether the new item should be scheduled. */ public abstract boolean shouldSchedule(Task p, List actions);