mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
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:
parent
57b3faf9fb
commit
136f40cdae
16 changed files with 2269 additions and 2150 deletions
|
|
@ -140,8 +140,9 @@ class Settings(BaseSettings):
|
|||
alembic_upgrade_on_start: bool = True
|
||||
# Optional dedicated SQLAlchemy URL for /v1/sql/* (read-only DB role recommended).
|
||||
sql_readonly_database_url: str = ""
|
||||
# When false, API skips config_sync / lldp / port_traffic schedulers (run `python -m netx_api.worker`).
|
||||
run_inline_schedulers: bool = True
|
||||
# When false (default), API skips config_sync / lldp / port_traffic schedulers —
|
||||
# run `python -m netx_api.worker` alongside the API. Set true only for single-process lab.
|
||||
run_inline_schedulers: bool = False
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue