diff --git a/scripts/litellm-health-check.py b/scripts/litellm-health-check.py index 89a9785..19170b9 100755 --- a/scripts/litellm-health-check.py +++ b/scripts/litellm-health-check.py @@ -288,6 +288,7 @@ def main(): print("") all_pass = True + degraded = [] # Track degraded (busy) checks # Run all checks checks = [ @@ -307,9 +308,15 @@ def main(): # Model probes model_results = check_model_probes() for name, passed, detail in model_results: - status = "✅" if passed else "❌" + # Check if this is a busy (degraded) verdict + if not passed and detail.startswith("busy "): + status = "⚠️" + degraded.append(name) + else: + status = "✅" if passed else "❌" print(" " + status + " " + name + ": " + detail) - if not passed: + # Only set all_pass=False for real failures (not busy) + if not passed and not detail.startswith("busy "): all_pass = False # Admin key list @@ -335,10 +342,16 @@ def main(): print("") if all_pass: - print("✅ All checks passed") + if degraded: + print("✅ All checks passed (" + str(len(degraded)) + " degraded: " + ", ".join(degraded) + ")") + else: + print("✅ All checks passed") return 0 else: - print("❌ Some checks failed") + if degraded: + print("❌ Some checks failed (" + str(len(degraded)) + " degraded: " + ", ".join(degraded) + ")") + else: + print("❌ Some checks failed") return 1 if __name__ == "__main__":