소스 검색

Reinstate background tasks

Daoud Clarke 2 년 전
부모
커밋
a86e172bf3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      mwmbl/background.py

+ 1 - 2
mwmbl/background.py

@@ -24,7 +24,7 @@ def run(data_path: str, url_queue: Queue):
         url_db.create_tables()
 
     initialize_url_queue(url_queue)
-    # historical.run()
+    historical.run()
     index_path = Path(data_path) / INDEX_NAME
     batch_cache = BatchCache(Path(data_path) / BATCH_DIR_NAME)
 
@@ -33,7 +33,6 @@ def run(data_path: str, url_queue: Queue):
             update_url_queue(url_queue)
         except Exception:
             logger.exception("Error updating URL queue")
-        return
         try:
             batch_cache.retrieve_batches(num_batches=10000)
         except Exception: