summaryrefslogtreecommitdiff
path: root/searx/search/checker/background.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-05-05 13:08:54 +0200
committerAlexandre Flament <alex@al-f.net>2021-05-05 13:12:42 +0200
commit8c1a65d32fb6a0859c0052d668d01f08325f11ad (patch)
tree8837e952d67fb8a4755ce2c732ada76474da75c2 /searx/search/checker/background.py
parentd36adfa59f242a8775ad74245c696d62b7727a36 (diff)
downloadsearxng-8c1a65d32fb6a0859c0052d668d01f08325f11ad.tar.gz
searxng-8c1a65d32fb6a0859c0052d668d01f08325f11ad.zip
[mod] multithreading only in searx.search.* packages
it prepares the new architecture change, everything about multithreading in moved in the searx.search.* packages previously the call to the "init" function of the engines was done in searx.engines: * the network was not set (request not sent using the defined proxy) * it requires to monkey patch the code to avoid HTTP requests during the tests
Diffstat (limited to 'searx/search/checker/background.py')
-rw-r--r--searx/search/checker/background.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py
index c3292d9ac..276426fa7 100644
--- a/searx/search/checker/background.py
+++ b/searx/search/checker/background.py
@@ -9,7 +9,7 @@ import signal
from searx import logger, settings, searx_debug
from searx.exceptions import SearxSettingsException
-from searx.search.processors import processors
+from searx.search.processors import PROCESSORS
from searx.search.checker import Checker
from searx.shared import schedule, storage
@@ -55,7 +55,7 @@ def run():
'status': 'ok',
'engines': {}
}
- for name, processor in processors.items():
+ for name, processor in PROCESSORS.items():
logger.debug('Checking %s engine', name)
checker = Checker(processor)
checker.run()