sync update from LAN repo (source dhk-1 @ 3b1ec5b4)
This commit is contained in:
1 parent
da6521b6cb
commit
264e2200d6
995 files changed
+148105
-13399
No files matched your search
+9
@@ -67,3 +67,12 @@ class LlmMetricsStore(ABC):
|
||||
async def iter_all(self, query: LlmMetricsQuery):
|
||||
"""Yield rows matching ``query`` without pagination — used by export."""
|
||||
raise NotImplementedError
|
||||
|
||||
async def purge_before(self, cutoff: datetime, *, batch_size: int = 1_000) -> int:
|
||||
"""Delete one bounded batch of audit rows older than ``cutoff``.
|
||||
|
||||
The default keeps lightweight/in-memory test implementations compatible.
|
||||
SQL-backed stores override it for the scheduled admin-audit retention
|
||||
sweep.
|
||||
"""
|
||||
return 0
|
||||
Reference in new issue
Block a user