remove timeout detection
This commit is contained in:
parent
0617517d7c
commit
4723789261
BIN
__pycache__/config.cpython-311.pyc
Normal file
BIN
__pycache__/config.cpython-311.pyc
Normal file
Binary file not shown.
@ -46,8 +46,8 @@ class RequestHandler(BaseHTTPRequestHandler):
|
||||
request_count = request_count + 1
|
||||
#print("Request: " + self.path)
|
||||
if (self.path.startswith("/metrics")):
|
||||
if (datetime.now() - lastMqttReception) > timedelta(hours=7):
|
||||
scrape_healthy = False
|
||||
#if (datetime.now() - lastMqttReception) > timedelta(hours=7):
|
||||
# scrape_healthy = False
|
||||
self.get_metrics()
|
||||
else:
|
||||
self.send_response(200)
|
||||
|
Loading…
Reference in New Issue
Block a user