🎉 svc-infra v1.0 is here — Production-ready backend infrastructure
What's new
nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
svc-infra / API Reference

HealthRegistry

from svc_infra.health import HealthRegistry
svc_infra.health

Registry of health checks for a service. The registry manages multiple health checks and provides methods to: - Run all checks and aggregate results - Wait for all critical checks to pass (startup probe) - Determine overall service health

Example

>>> registry = HealthRegistry() >>> registry.add("database", check_database(db_url), critical=True) >>> registry.add("cache", check_redis(redis_url), critical=False) >>> >>> # Run all checks >>> result = await registry.check_all() >>> print(result.status) # "healthy" or "unhealthy" >>> >>> # Wait for startup >>> await registry.wait_until_healthy(timeout=60)

Methods

On This Page

Constructoraddcheck_allcheck_oneclearremovewait_until_healthy