diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-02-20 00:21:56 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-02-20 00:21:56 +0100 |
commit | 10947536aa1e6e08c54f075b227ba592f1553cb0 (patch) | |
tree | 637925e116c68d56946af749d691951309ece907 /searx/engines/__init__.py | |
parent | 17b0c9f74a17d76add28ccf515c2b8092c455d8a (diff) | |
download | searxng-10947536aa1e6e08c54f075b227ba592f1553cb0.tar.gz searxng-10947536aa1e6e08c54f075b227ba592f1553cb0.zip |
[enh] suspend engines after error
The duration is based on the number of continuous errors, but maximized in one minute
Diffstat (limited to 'searx/engines/__init__.py')
-rw-r--r-- | searx/engines/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |