diff options
author | Alexandre Flament <alex@al-f.net> | 2021-01-13 14:07:39 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-01-13 14:07:39 +0100 |
commit | 912c7e975c3943db798d748fa48d460467b66d30 (patch) | |
tree | 0dc84bbe549fac71ead7ee4e4fafeb0d3f3021c2 /searx/shared/__init__.py | |
parent | 7f0c508598cc2197e53b877dcf4c76e25a097c4f (diff) | |
download | searxng-912c7e975c3943db798d748fa48d460467b66d30.tar.gz searxng-912c7e975c3943db798d748fa48d460467b66d30.zip |
[fix] checker: don't run the checker when uwsgi is not properly configured
Before this commit, even with the scheduler disabled, the checker was running
at least once for each uwsgi worker.
Diffstat (limited to 'searx/shared/__init__.py')
-rw-r--r-- | searx/shared/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/shared/__init__.py b/searx/shared/__init__.py index 83d3a2742..cbe24d239 100644 --- a/searx/shared/__init__.py +++ b/searx/shared/__init__.py @@ -22,7 +22,7 @@ else: from .shared_simple import SimpleSharedDict as SharedDict def schedule(delay, func, *args): - pass + return False else: # uwsgi from .shared_uwsgi import UwsgiCacheSharedDict as SharedDict, schedule |