Browse Source

Run update

Daoud Clarke 3 years ago
parent
commit
ce9f52267a
1 changed files with 6 additions and 6 deletions
  1. 6 6
      mwmbl/background.py

+ 6 - 6
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)