Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics.

Add shared CLI budget/timeout with force-close, parallel port-traffic dispatch, unified shutdown, bounded audit queue, output/log caps, and /metrics probes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 18:02:43 +08:00
parent 2068ce3d04
commit d56020d84c
23 changed files with 824 additions and 102 deletions

View file

@ -43,6 +43,10 @@ def main() -> None:
while not stop.is_set():
time.sleep(1.0)
from .app_shutdown import shutdown_runtime
shutdown_runtime(reason="worker_signal")
_log.info("netx worker exiting")