cleanup file structure

This commit is contained in:
anthonyrawlins
2025-07-17 10:51:31 +10:00
parent ee71f208fd
commit 42d02fbb60
7 changed files with 102 additions and 33 deletions

View File

@@ -282,9 +282,11 @@ def check_component_health(component_name: str, check_function) -> Dict[str, Any
"""
try:
result = check_function()
# Ensure details is always a dictionary
details = result if isinstance(result, dict) else {"status": result}
return {
"status": "healthy",
"details": result,
"details": details,
"last_check": datetime.utcnow().isoformat()
}
except Exception as e: