Comment out dynamic log data retrieval in checker.py, maintaining a fixed health status callback message "test ok". This change simplifies the health check process while preserving error handling functionality.

This commit is contained in:
vvzvlad 2025-01-18 15:03:02 +03:00
parent f5706ac887
commit 4e50ee554b

View File

@ -180,10 +180,10 @@ if __name__ == "__main__":
for attempt in range(3): for attempt in range(3):
try: try:
result = check_logs(logger) #result = check_logs(logger)
data = f"{result['proved_steps']}/{result['proof_speed']}/{result['errors']}" # proved/proof_speed/Errors #data = f"{result['proved_steps']}/{result['proof_speed']}/{result['errors']}" # proved/proof_speed/Errors
grist_callback({ "Health": "test ok" }) grist_callback({ "Health": "test ok" })
print(result) #print(result)
break break
except Exception as e: except Exception as e:
logger.error(f"Error on attempt {attempt+1}/3: {e}") logger.error(f"Error on attempt {attempt+1}/3: {e}")