blitz_api/app/api/startup_status.py
fusion44 6b29239cc0
refactor(api): hoist api_startup_status into a shared leaf module
Move the in-process startup-state singleton out of app.main into
app.api.startup_status so app.system can read it without a circular
import. No behavior change - main mutates the same shared object.

Also lands the design spec and implementation plan for the
system/health endpoint work (#145).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 18:41:18 +02:00

7 lines
364 B
Python

from app.api.models import ApiStartupStatus
# Single in-process source of truth for bitcoin/lightning startup state.
# Mutated by the startup tasks in app.main; read by the /system/health endpoint
# and the WebSocket warmup. Kept in this leaf module so app.system can import it
# without a circular dependency on app.main.
api_startup_status = ApiStartupStatus()