.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self) | |
is_suspended (self) | |
suspend (self, suspended_time, suspend_reason) | |
resume (self) | |
Public Attributes | |
lock = threading.Lock() | |
int | continuous_errors = 0 |
int | suspend_end_time = 0 |
suspend_reason = None | |
int | lock = 1 |
Static Private Attributes | |
str | __slots__ = 'suspend_end_time', 'suspend_reason', 'continuous_errors', 'lock' |
Class to handle suspend state.
Definition at line 22 of file abstract.py.
searx.search.processors.abstract.SuspendedStatus.__init__ | ( | self | ) |
Definition at line 27 of file abstract.py.
searx.search.processors.abstract.SuspendedStatus.is_suspended | ( | self | ) |
Definition at line 34 of file abstract.py.
References searx.search.processors.abstract.SuspendedStatus.suspend_end_time.
searx.search.processors.abstract.SuspendedStatus.resume | ( | self | ) |
Definition at line 50 of file abstract.py.
References searx.search.processors.abstract.SuspendedStatus.continuous_errors, searx.metrics.models.CounterStorage.lock, searx.search.processors.abstract.SuspendedStatus.lock, searx.search.processors.abstract.SuspendedStatus.suspend_end_time, and searx.search.processors.abstract.SuspendedStatus.suspend_reason.
searx.search.processors.abstract.SuspendedStatus.suspend | ( | self, | |
suspended_time, | |||
suspend_reason ) |
Definition at line 37 of file abstract.py.
|
staticprivate |
Definition at line 25 of file abstract.py.
int searx.search.processors.abstract.SuspendedStatus.continuous_errors = 0 |
Definition at line 29 of file abstract.py.
Referenced by searx.search.processors.abstract.SuspendedStatus.resume().
searx.search.processors.abstract.SuspendedStatus.lock = threading.Lock() |
Definition at line 28 of file abstract.py.
Referenced by searx.metrics.models.CounterStorage.add(), searx.metrics.models.CounterStorage.clear(), searx.metrics.models.CounterStorage.dump(), and searx.search.processors.abstract.SuspendedStatus.resume().
int searx.search.processors.abstract.SuspendedStatus.lock = 1 |
Definition at line 38 of file abstract.py.
Referenced by searx.metrics.models.CounterStorage.add(), searx.metrics.models.CounterStorage.clear(), searx.metrics.models.CounterStorage.dump(), and searx.search.processors.abstract.SuspendedStatus.resume().
int searx.search.processors.abstract.SuspendedStatus.suspend_end_time = 0 |
Definition at line 30 of file abstract.py.
Referenced by searx.search.processors.abstract.SuspendedStatus.is_suspended(), and searx.search.processors.abstract.SuspendedStatus.resume().
searx.search.processors.abstract.SuspendedStatus.suspend_reason = None |
Definition at line 31 of file abstract.py.
Referenced by searx.search.processors.abstract.SuspendedStatus.resume().