forked from Icycoide/searxng
[enh] suspend engines after error
The duration is based on the number of continuous errors, but maximized in one minute
This commit is contained in:
parent
17b0c9f74a
commit
10947536aa
2 changed files with 17 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue