The _check_vector_store_health method in HealthHandler appears two times which means the second is overwriting the first one. This causes an unexpected outcome during health check.
You can find the conflicts in HealthHandler here(line 84) and here(line (115)
Also there is a missing import statement for datetime used here and I suggest we avoid the deprecated utcnow()
from datetime import datetime, timezone
- "timestamp": datetime.utcnow().isoformat(),
+ "timestamp": datetime.now(timezone.utc).isoformat(),
The
_check_vector_store_healthmethod inHealthHandlerappears two times which means the second is overwriting the first one. This causes an unexpected outcome during health check.You can find the conflicts in HealthHandler here(line 84) and here(line (115)
Also there is a missing import statement for datetime used here and I suggest we avoid the deprecated utcnow()