Split WebCRT and API startup; default collectors to worker process.

Extract channel/session modules and CLI guard, move UME sidebands out of main, and default NETX_RUN_INLINE_SCHEDULERS off so ops run python -m netx_api.worker.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 16:50:52 +08:00
parent 57b3faf9fb
commit 136f40cdae
16 changed files with 2269 additions and 2150 deletions

View file

@ -54,6 +54,8 @@ NETX_UME_NOTIFICATION_TOPIC=ALARM
# NETX_ALEMBIC_UPGRADE_ON_START=false
# NETX_SKIP_LEGACY_STARTUP_DDL=false
# NETX_SQL_READONLY_DATABASE_URL=postgresql+psycopg://netx_ro:xxx@127.0.0.1:5432/netx
# Device collectors: default off in API — run `python -m netx_api.worker`.
# Lab single-process: NETX_RUN_INLINE_SCHEDULERS=true
# NETX_RUN_INLINE_SCHEDULERS=true
# NETX_AUDIT_ASYNC=true
# NETX_AUDIT_SAMPLE_N=1