summaryrefslogtreecommitdiff
path: root/searx/shared
diff options
context:
space:
mode:
Diffstat (limited to 'searx/shared')
-rw-r--r--searx/shared/__init__.py2
-rw-r--r--searx/shared/shared_simple.py1
-rw-r--r--searx/shared/shared_uwsgi.py1
3 files changed, 3 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
diff --git a/searx/shared/shared_simple.py b/searx/shared/shared_simple.py
index 5b970aad9..48d8cb822 100644
--- a/searx/shared/shared_simple.py
+++ b/searx/shared/shared_simple.py
@@ -36,3 +36,4 @@ def schedule(delay, func, *args):
func(*args)
call_later()
+ return True
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