You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sergey Zhuplev da2de7c5ab Update 'aiohttp_healthchecker/' 2 months ago
aiohttp_healthchecker Update 'aiohttp_healthchecker/' 2 months ago
.gitignore Initial commit 2 months ago Update '' 2 months ago
poetry.lock Initial commit 2 months ago
pyproject.toml Fix typo 2 months ago



$ pipenv install git+


async def test1(app):
    # check something
    return True, None

async def test2(app):
    # check something
    return False, "its not okey"

health_checker = HealthChecker()
# Be aware with liveness probes! Do not check connectivity to external services (db, redis, etc)
# in liveness probes it can produce cascade restarts of application in case of temporary
# unavailable external service

# place this middleware on top of others, but after APM-like middlewares
# to trace probe transactions
app = web.Application(middlewares=[health_checker.build_middleware(), ...])