reacivated clear stacks code for termination of all crawls because this

did not work wihtout that part of the code
pull/1/head
Michael Peter Christen 10 years ago
parent 3cd7deb3b8
commit 5d4167f977

@ -128,7 +128,6 @@ public class Crawler_p {
if (post != null && post.containsKey("queues_terminate_all")) { if (post != null && post.containsKey("queues_terminate_all")) {
// terminate crawls individually // terminate crawls individually
sb.crawlQueues.noticeURL.clear(); sb.crawlQueues.noticeURL.clear();
/*
for (final byte[] h: sb.crawler.getActive()) { for (final byte[] h: sb.crawler.getActive()) {
CrawlProfile p = sb.crawler.getActive(h); CrawlProfile p = sb.crawler.getActive(h);
if (CrawlSwitchboard.DEFAULT_PROFILES.contains(p.name())) continue; if (CrawlSwitchboard.DEFAULT_PROFILES.contains(p.name())) continue;
@ -137,7 +136,6 @@ public class Crawler_p {
sb.crawler.removePassive(h); sb.crawler.removePassive(h);
try {sb.crawlQueues.noticeURL.removeByProfileHandle(p.handle(), 10000);} catch (SpaceExceededException e) {} try {sb.crawlQueues.noticeURL.removeByProfileHandle(p.handle(), 10000);} catch (SpaceExceededException e) {}
} }
*/
// clear stacks // clear stacks
for (StackType stackType: StackType.values()) sb.crawlQueues.noticeURL.clear(stackType); for (StackType stackType: StackType.values()) sb.crawlQueues.noticeURL.clear(stackType);

Loading…
Cancel
Save