diff options
author | Alexandre Flament <alex@al-f.net> | 2022-07-15 18:38:32 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-11-05 12:04:50 +0100 |
commit | fe419e355bf1527c51e3aee98495d08b89510320 (patch) | |
tree | 0ed03d5e3d77e68ac5a5834e5890f5f27fe29fe7 /searx/webapp.py | |
parent | d764d94a70b0b10291105a867227975d59af5675 (diff) | |
download | searxng-fe419e355bf1527c51e3aee98495d08b89510320.tar.gz searxng-fe419e355bf1527c51e3aee98495d08b89510320.zip |
The checker requires Redis
Remove the abstraction in searx.shared.SharedDict.
Implement a basic and dedicated scheduler for the checker using a Redis script.
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 5c3fbae8b..4f334a9d0 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -120,6 +120,7 @@ from searx.locales import ( # renaming names from searx imports ... from searx.autocomplete import search_autocomplete, backends as autocomplete_backends from searx.languages import language_codes as languages +from searx.shared.redisdb import initialize as redis_initialize from searx.search import SearchWithPlugins, initialize as search_initialize from searx.network import stream as http_stream, set_context_network_name from searx.search.checker import get_result as checker_get_result @@ -1384,6 +1385,7 @@ werkzeug_reloader = flask_run_development or (searx_debug and __name__ == "__mai if not werkzeug_reloader or (werkzeug_reloader and os.environ.get("WERKZEUG_RUN_MAIN") == "true"): locales_initialize() _INFO_PAGES = infopage.InfoPageSet() + redis_initialize() plugin_initialize(app) search_initialize(enable_checker=True, check_network=True, enable_metrics=settings['general']['enable_metrics']) |