fix(ui): app run refresh uses effective cgroup

This commit is contained in:
beckline
2026-02-16 00:03:46 +03:00
parent 0c41a938af
commit b39ff5f0d9

View File

@@ -1994,7 +1994,7 @@ RU: Применяет policy-rules и проверяет health. При оши
if last_unit and last_target == target and last_key and last_key == app_key: if last_unit and last_target == target and last_key and last_key == app_key:
code, out = self._systemctl_user(["is-active", last_unit]) code, out = self._systemctl_user(["is-active", last_unit])
if code == 0 and (out or "").strip().lower() == "active": if code == 0 and (out or "").strip().lower() == "active":
cg = self._query_control_group_for_unit(last_unit) cg = self._effective_cgroup_for_unit_retry(last_unit, timeout_sec=3.0)
self._append_app_log( self._append_app_log(
f"[app] already running: app={app_key} target={target} unit={last_unit} (refreshing mark)" f"[app] already running: app={app_key} target={target} unit={last_unit} (refreshing mark)"
) )