Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Run update

Daoud Clarkece9f52267a80
diff --git a/mwmbl/background.py b/mwmbl/background.py
index 09b92da..5feb064 100644
--- a/mwmbl/background.py
+++ b/mwmbl/background.py
@@ -19,12 +19,12 @@ def run(index_path: str):
# retrieve_batches()
# except Exception:
# logger.exception("Error retrieving batches")
- try:
- run_preprocessing(index_path)
- except Exception:
- logger.exception("Error preprocessing")
# try:
- # run_update(index_path)
+ # run_preprocessing(index_path)
# except Exception:
- # logger.exception("Error running index update")
+ # logger.exception("Error preprocessing")
+ try:
+ run_update(index_path)
+ except Exception:
+ logger.exception("Error running index update")
sleep(10)