cleanup crawl loader jobs

pull/1/head
Michael Peter Christen 11 years ago
parent 1ea17bd9f3
commit 0d235a565b

@ -176,7 +176,7 @@ public class CrawlQueues {
return null;
}
private void cleanup() {
public void cleanup() {
// wait for all workers to finish
final int timeout = (int) this.sb.getConfigLong("crawler.clientTimeout", 10000);
for (final Loader w: this.workers.values()) {

@ -2084,6 +2084,9 @@ public final class Switchboard extends serverSwitch {
}
}
// cleanup crawl loader jobs
this.crawlQueues.cleanup();
// refresh recrawl dates
try {
CrawlProfile selentry;

Loading…
Cancel
Save