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>
18 lines
322 B
Makefile
18 lines
322 B
Makefile
# List recipes.
|
|
default:
|
|
@just --list
|
|
|
|
# Run hAPI locally: the API on :8000 and probes on :8081.
|
|
dev:
|
|
uv run hapi serve
|
|
|
|
# Run the test suite.
|
|
test *args:
|
|
uv run pytest {{args}}
|
|
|
|
# Ruff (lint + format check) and pyright strict.
|
|
lint:
|
|
uv run ruff check .
|
|
uv run ruff format --check .
|
|
uv run pyright
|