mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +08:00
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:
parent
bd01440e9d
commit
5e7d14f253
4 changed files with 250 additions and 10 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue