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/' 9 months ago
aiohttp_healthchecker Update 'aiohttp_healthchecker/' 9 months ago
.gitignore Initial commit 9 months ago Update '' 9 months ago
poetry.lock Initial commit 9 months ago
pyproject.toml Fix typo 9 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(), ...])