WIP autoscaler agent
This commit is contained in:
parent
c610a3e284
commit
28059dcedf
34 changed files with 2409 additions and 35 deletions
19
agent/nix_builder_autoscaler/api.py
Normal file
19
agent/nix_builder_autoscaler/api.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"""FastAPI application — stub for Plan 04."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
||||
|
||||
def create_app() -> FastAPI:
|
||||
"""Create the FastAPI application.
|
||||
|
||||
Full implementation in Plan 04.
|
||||
"""
|
||||
app = FastAPI(title="nix-builder-autoscaler", version="0.1.0")
|
||||
|
||||
@app.get("/health/live")
|
||||
def health_live() -> dict[str, str]:
|
||||
return {"status": "ok"}
|
||||
|
||||
return app
|
||||
Loading…
Add table
Add a link
Reference in a new issue