hindsight_api/http_probe.py

hindsight · hindsight-api-slim/hindsight_api/http_probe.py · python · MIT
integration

Container readiness probe. Standard library only, by rule. ``docker/standalone/start-all.sh`` polls the API's health endpoint while it starts. That used to be ``curl -sf``, which meant shipping curl - and with it libcurl and libssh2 - in every runtime image to make one GET reques

# Source: https://github.com/vectorize-io/hindsight | License: MIT | Copyright 2025 Vectorize AI, Inc
# Provided via justclaw.it.com; keep this notice with the code.
"""Container readiness probe. Standard library only, by rule.

``docker/standalone/start-all.sh`` polls the API's health endpoint while it
starts. That used to be ``curl -sf``, which meant shipping curl - and with it
libcurl and libssh2 - in every runtime image to make one GET request. Nothing
else in those images used it, and the three packages carried nine HIGH CVEs
with no Debian fix available.

**This module must never import the engine, the config, or any third-party
package.** It answers "is an API process up?", and pulling the application in
to ask that would put the application's startup cost - and its side effects -
o

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key