Add DSH key-alarm subscribe hub for outbound netxops clients.

netx hosts /v1/integrations/dsh-alarm/ws; matched key alerts fan out to dialed-in DSH subscribers while the optional oclaw bridge remains.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-05 20:50:50 +08:00
parent bd01440e9d
commit 5e7d14f253
4 changed files with 250 additions and 10 deletions

View file

@ -45,10 +45,14 @@ _BOOT_MONO = time.monotonic()
@asynccontextmanager
async def lifespan(_app: FastAPI) -> AsyncIterator[None]:
import asyncio
from .app_startup import run_api_startup
from .app_shutdown import shutdown_runtime
from .dsh_alarm_hub import bind_event_loop
run_api_startup()
bind_event_loop(asyncio.get_running_loop())
try:
yield
finally: