mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
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:
parent
2068ce3d04
commit
d56020d84c
23 changed files with 824 additions and 102 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue