diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java index 2cec5bfb9aca78c7e71c48114bf42cd7b359885d..f2526975f607c69acd19b9bd1942de0bd3601df7 100644 --- a/core/src/main/java/hudson/model/Queue.java +++ b/core/src/main/java/hudson/model/Queue.java @@ -920,9 +920,10 @@ public class Queue extends ResourceController implements Saveable { *
* This wakes up one {@link Executor} so that it will maintain a queue. */ - public void scheduleMaintenance() { + @WithBridgeMethods(void.class) + public Future> scheduleMaintenance() { // LOGGER.info("Scheduling maintenance"); - maintainerThread.submit(); + return maintainerThread.submit(); } /**