An open source, non-profit web search engine
Reinstate commented out code
Daoud Clarkef2803506c2e7
diff --git a/crawl.py b/crawl.pyindex 1adb1d5..7f093e5 100644--- a/crawl.py+++ b/crawl.py@@ -1,7 +1,6 @@import loggingimport osimport time-from collections import Counterfrom multiprocessing import Processfrom pathlib import Path@@ -28,7 +27,7 @@ django.setup()from mwmbl.indexer.update_urls import record_urls_in_databasefrom mwmbl.crawler.retrieve import crawl_batchfrom mwmbl.crawler.batch import HashedBatch, Result, Results-from mwmbl.indexer.index_batches import index_batches, index_documents, index_pages+from mwmbl.indexer.index_batches import index_batches, index_pageslogger = logging.getLogger(__name__)FORMAT = "%(process)d:%(levelname)s:%(name)s:%(message)s"@@ -43,10 +42,10 @@ url_queue = RedisURLQueue(redis, lambda: set())def run():- # for i in range(10):- # process = Process(target=process_batch_continuously)- # process.start()- # time.sleep(5)+ for i in range(10):+ process = Process(target=process_batch_continuously)+ process.start()+ time.sleep(5)index_process = Process(target=run_indexing_continuously)index_process.start()