| .oO SearXNG Developer Documentation Oo.
    | 
| Public Member Functions | |
| __init__ (self) | |
| is_suspended (self) | |
| suspend (self, int|None suspended_time, str suspend_reason) | |
| resume (self) | |
| Public Attributes | |
| threading.Lock | lock = threading.Lock() | 
| int | continuous_errors = 0 | 
| float | suspend_end_time = 0 | 
| str | suspend_reason = "" | 
Class to handle suspend state.
Definition at line 77 of file abstract.py.
| searx.search.processors.abstract.SuspendedStatus.__init__ | ( | self | ) | 
Definition at line 80 of file abstract.py.
| searx.search.processors.abstract.SuspendedStatus.is_suspended | ( | self | ) | 
Definition at line 87 of file abstract.py.
References suspend_end_time.
| searx.search.processors.abstract.SuspendedStatus.resume | ( | self | ) | 
Definition at line 103 of file abstract.py.
References continuous_errors, searx.metrics.models.CounterStorage.lock, lock, suspend_end_time, and suspend_reason.
| searx.search.processors.abstract.SuspendedStatus.suspend | ( | self, | |
| int | None | suspended_time, | ||
| str | suspend_reason ) | 
Definition at line 90 of file abstract.py.
References continuous_errors, searx.get_setting(), searx.metrics.models.CounterStorage.lock, lock, suspend_end_time, and suspend_reason.
| int searx.search.processors.abstract.SuspendedStatus.continuous_errors = 0 | 
Definition at line 82 of file abstract.py.
| threading.Lock searx.search.processors.abstract.SuspendedStatus.lock = threading.Lock() | 
Definition at line 81 of file abstract.py.
| float searx.search.processors.abstract.SuspendedStatus.suspend_end_time = 0 | 
Definition at line 83 of file abstract.py.
Referenced by is_suspended(), resume(), and suspend().
| str searx.search.processors.abstract.SuspendedStatus.suspend_reason = "" | 
Definition at line 84 of file abstract.py.