new: hapi serve runs the API and probes in one event loop (#74)
Two uvicorn servers, the public API on :8000 and the internal probe listener on :8081, share one event loop (ADR-0009), so a wedged loop fails liveness. SIGINT/SIGTERM stops both; if one listener stops or fails to start, the other stops with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
586cd91f82
commit
12b634b7e0
8 files changed
+273
-1
No files matched your search
@@ -6,8 +6,13 @@ readme = "README.md"
|
||||
requires-python = ">=3.14"
|
||||
dependencies = [
|
||||
"fastapi>=0.165.0",
|
||||
"typer>=0.29.3",
|
||||
"uvicorn>=0.54.0",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
hapi = "hapi.cli:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
Reference in new issue
Block a user