mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(gateway): refresh runtime argv metadata
This commit is contained in:
parent
7d276bfbee
commit
124fbb0af0
2 changed files with 29 additions and 3 deletions
|
|
@ -482,10 +482,12 @@ def write_runtime_status(
|
|||
"""Persist gateway runtime health information for diagnostics/status."""
|
||||
path = _get_runtime_status_path()
|
||||
payload = _read_json_file(path) or _build_runtime_status_record()
|
||||
current_record = _build_pid_record()
|
||||
payload.setdefault("platforms", {})
|
||||
payload.setdefault("kind", _GATEWAY_KIND)
|
||||
payload["pid"] = os.getpid()
|
||||
payload["start_time"] = _get_process_start_time(os.getpid())
|
||||
payload["kind"] = current_record["kind"]
|
||||
payload["pid"] = current_record["pid"]
|
||||
payload["argv"] = current_record["argv"]
|
||||
payload["start_time"] = current_record["start_time"]
|
||||
payload["updated_at"] = _utc_now_iso()
|
||||
|
||||
if gateway_state is not _UNSET:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue