fix(reporter): refresh last_heal_timestamp on every heal result

This commit is contained in:
patrick committed 2026-03-06 18:43:34 -05:00
1 parent 469a30df6a
commit ecda631049
2 files changed
+25 -2

No files matched your search

+5 -2
View File
@@ -137,8 +137,11 @@ class LocalStateReporter:
)
if heal_result is not None:
effective_heal_result = heal_result
if effective_last_heal_timestamp is None:
effective_last_heal_timestamp = datetime.now().isoformat()
effective_last_heal_timestamp = (
last_heal_timestamp
if last_heal_timestamp is not None
else datetime.now().isoformat()
)
now_epoch = time.time()
checks_total = max(0, self._get_int(previous, "checks_total", 0))