mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Start API and collector worker together from one-click scripts.
Default start_netx.ps1/sh now set NETX_RUN_INLINE_SCHEDULERS=false and launch netx_api.worker; stop scripts tear the worker down with the API. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
96be90bd1a
commit
f1263b0848
6 changed files with 135 additions and 16 deletions
|
|
@ -51,8 +51,11 @@ def log_runtime_budget(*, role: str = "api") -> None:
|
|||
inline = bool(getattr(settings, "run_inline_schedulers", True))
|
||||
if inline:
|
||||
_log.info(
|
||||
"runtime budget: inline schedulers ON (one-click start via scripts/start_netx.ps1). "
|
||||
"Optional split: NETX_RUN_INLINE_SCHEDULERS=false + python -m netx_api.worker"
|
||||
"runtime budget: inline schedulers ON "
|
||||
"(legacy single-process; start scripts default to API+worker split)"
|
||||
)
|
||||
else:
|
||||
_log.info(
|
||||
"runtime budget: external worker mode "
|
||||
"(start_netx.ps1/sh auto-starts python -m netx_api.worker)"
|
||||
)
|
||||
elif host not in {"127.0.0.1", "localhost", "::1"}:
|
||||
_log.info("runtime budget: external worker mode on bind=%s", host)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue