summaryrefslogtreecommitdiff
path: root/searx/shared/shared_uwsgi.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-01-13 14:07:39 +0100
committerAlexandre Flament <alex@al-f.net>2021-01-13 14:07:39 +0100
commit912c7e975c3943db798d748fa48d460467b66d30 (patch)
tree0dc84bbe549fac71ead7ee4e4fafeb0d3f3021c2 /searx/shared/shared_uwsgi.py
parent7f0c508598cc2197e53b877dcf4c76e25a097c4f (diff)
[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/shared_uwsgi.py')
-rw-r--r--searx/shared/shared_uwsgi.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/shared/shared_uwsgi.py b/searx/shared/shared_uwsgi.py
index b42b5fa7b..a6dba9f59 100644
--- a/searx/shared/shared_uwsgi.py
+++ b/searx/shared/shared_uwsgi.py
@@ -61,3 +61,4 @@ def schedule(delay, func, *args):
_last_signal += 1
uwsgi.register_signal(signal_num, 'worker', sighandler)
uwsgi.add_timer(signal_num, delay)
+ return True