提交 9b9b053e 编写于 作者: K Kohsuke Kawaguchi

provide a means to synchronize on the completion of the maintenance, mainly for tests

上级 08066287
...@@ -920,9 +920,10 @@ public class Queue extends ResourceController implements Saveable { ...@@ -920,9 +920,10 @@ public class Queue extends ResourceController implements Saveable {
* <p> * <p>
* This wakes up one {@link Executor} so that it will maintain a queue. * 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"); // LOGGER.info("Scheduling maintenance");
maintainerThread.submit(); return maintainerThread.submit();
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册