提交 efcfe5d1 编写于 作者: K kohsuke

Renamed to reflect what it really does.



git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9408 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c2d95bca
......@@ -12,7 +12,7 @@ import java.util.WeakHashMap;
*
* @author Kohsuke Kawaguchi
*/
public class SlaveReconnectionWork extends SafeTimerTask {
public class ComputerRetentionWork extends SafeTimerTask {
/**
* Use weak hash map to avoid leaking {@link Computer}.
*/
......
......@@ -4,7 +4,7 @@ import antlr.ANTLRException;
import hudson.DependencyRunner;
import hudson.DependencyRunner.ProjectRunnable;
import hudson.ExtensionPoint;
import hudson.slaves.SlaveReconnectionWork;
import hudson.slaves.ComputerRetentionWork;
import hudson.model.AbstractProject;
import hudson.model.Action;
import hudson.model.Build;
......@@ -217,7 +217,7 @@ public abstract class Trigger<J extends Item> implements Describable<Trigger<?>>
// clean up fingerprint once a day
timer.scheduleAtFixedRate(new FingerprintCleanupThread(),DAY,DAY);
timer.scheduleAtFixedRate(new WorkspaceCleanupThread(),DAY+4*HOUR,DAY);
timer.scheduleAtFixedRate(new SlaveReconnectionWork(),15*MIN,1*MIN);
timer.scheduleAtFixedRate(new ComputerRetentionWork(),15*MIN,1*MIN);
// start monitoring nodes, although there's no hurry.
timer.schedule(new SafeTimerTask() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册