From 10947536aa1e6e08c54f075b227ba592f1553cb0 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sat, 20 Feb 2016 00:21:56 +0100 Subject: [enh] suspend engines after error The duration is based on the number of continuous errors, but maximized in one minute --- searx/engines/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'searx/engines/__init__.py') diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 5c641ab0e..6d5066733 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -40,7 +40,9 @@ engine_default_args = {'paging': False, 'safesearch': False, 'timeout': settings['outgoing']['request_timeout'], 'shortcut': '-', - 'disabled': False} + 'disabled': False, + 'suspend_end_time': 0, + 'continuous_errors': 0} def load_module(filename): -- cgit v1.2.3-54-g00ecf