allow to send metrics to memory or redis
Build and Push Docker Container / build-and-push (push) Successful in 52s

This commit is contained in:
2026-04-04 14:21:54 +02:00
parent eb6a054bc9
commit c3da096320
7 changed files with 377 additions and 12 deletions
+12
View File
@@ -0,0 +1,12 @@
class MemoryMetricsStore:
def __init__(self, **kwargs):
self._snapshots:dict[str, dict] = {}
async def publish(self, worker_id:str, snapshot:dict) -> None:
self._snapshots[worker_id] = dict(snapshot)
async def load_all(self) -> list[dict]:
return [dict(value) for value in self._snapshots.values()]
async def close(self) -> None:
return None