提交 1805b90a 编写于 作者: J Jesse Glick

rebuildDependencyGraphAsync can wait a fraction of a second to improve the...

rebuildDependencyGraphAsync can wait a fraction of a second to improve the chances that events will be coalesced.
上级 3fe6ed7b
......@@ -3625,7 +3625,7 @@ public class Jenkins extends AbstractCIBase implements ModifiableTopLevelItemGro
*/
public Future<DependencyGraph> rebuildDependencyGraphAsync() {
dependencyGraphDirty.set(true);
return Timer.get().submit(new java.util.concurrent.Callable<DependencyGraph>() {
return Timer.get().schedule(new java.util.concurrent.Callable<DependencyGraph>() {
@Override
public DependencyGraph call() throws Exception {
if (dependencyGraphDirty.get()) {
......@@ -3633,7 +3633,7 @@ public class Jenkins extends AbstractCIBase implements ModifiableTopLevelItemGro
}
return dependencyGraph;
}
});
}, 500, TimeUnit.MILLISECONDS);
}
public DependencyGraph getDependencyGraph() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册