все еще боремся в journalю скорректирован toml

This commit is contained in:
Ilgiz Kalmetyev 2026-04-16 23:41:15 +05:00
parent 60229f2c60
commit 2fc9405464
2 changed files with 8 additions and 2 deletions

View File

@ -70,7 +70,7 @@ extra_actions = []
enabled = true
mode = "tail"
source_name = "systemd-journal"
unit_allowlist = ["wpa_supplicant"]
comm_allowlist = ["wpa_supplicant"]
max_priority = 7
[[collectors.journal.filters]]

View File

@ -714,6 +714,12 @@ class AgentApplication:
def tick_runtime(self, *, now_mono_ns_value: int | None = None) -> None:
# print("RUNTIME tick", flush=True)
now = now_mono_ns() if now_mono_ns_value is None else now_mono_ns_value
self.ingest_trace.record(
"runtime.tick",
tick_total=self.runtime_state.tick_total,
now_mono_ns=now,
stop_requested=self.runtime_state.stop_requested,
)
self._poll_collectors(now_mono_ns_value=now)
@ -750,7 +756,7 @@ class AgentApplication:
self.runtime_state.tick_total += 1
self.runtime_state.last_tick_mono_ns = now
def stop_runtime(self) -> None:
def stop_runtime('self) -> None:
self.runtime_state.stop_requested = True
try:
self.collector_supervisor.stop_all()