Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
2a3b9a2e26
[pylint] searx: drop no longer needed 'missing-function-docstring'
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
2f363858b8
[fix] searx.search.checker.get_result() always return a dict
...
So checker_results['status'] == 'ok' is enough to check the checker result.
See searx/webapp.py, /preferences endpoint
3 years ago
Markus Heiser
fa0d05c313
[pylint] checker/__main__.py & checker/background.py
...
Lint files that has been touched by [PR #58 ]
[PR #58 ] https://github.com/searxng/searxng/pull/58
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Alexandre Flament
8c1a65d32f
[mod] multithreading only in searx.search.* packages
...
it prepares the new architecture change,
everything about multithreading in moved in the searx.search.* packages
previously the call to the "init" function of the engines was done in searx.engines:
* the network was not set (request not sent using the defined proxy)
* it requires to monkey patch the code to avoid HTTP requests during the tests
4 years ago
Rolf
80025c3244
Windows does not support SIGUSR1, so don't use it unconditionally.
4 years ago
Alexandre Flament
67a1aab0d5
[fix] /stats/checker : remove the timestamp field when the checker is disabled
4 years ago
Alexandre Flament
912c7e975c
[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.
4 years ago
Alexandre Flament
7f0c508598
[fix] checker: fix typo unknown instead of unknow
4 years ago
Alexandre Flament
87bafbc32b
[mod] checker: add status and timestamp to the result
...
for each engine: replace status by success
4 years ago
Alexandre Flament
3a9f513521
[enh] checker: background check
...
See settings.yml for the options
SIGUSR1 signal starts the checker.
The result is available at /stats/checker
4 years ago