Default collectors inline with the API again.

Frontend+backend start is enough; external worker remains an optional production split.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 16:55:46 +08:00
parent 136f40cdae
commit b03c92bdef
8 changed files with 14 additions and 13 deletions

View file

@ -1,12 +1,12 @@
"""Background worker process for long-running schedulers.
Default deployment: API has ``NETX_RUN_INLINE_SCHEDULERS=false``; run this
alongside the API:
Optional when ``NETX_RUN_INLINE_SCHEDULERS=false`` (API does not start collectors):
python -m netx_api.worker
Starts: config_sync, lldp_collect, port_traffic tick loops.
UME WS / keepalive remain in the API process (token + alarm coordination).
By default the API runs collectors inline — no separate worker needed.
"""
from __future__ import annotations